PC Review


Reply
Thread Tools Rate Thread

Design decision -- Files in groups of 4

 
 
Michael A. Covington
Guest
Posts: n/a
 
      27th Jul 2006
I'm developing an application that will handle files in groups of 4, namely
3 video files plus a script saying how to put them together.

These are all files that I will deliver with the app, so I have complete
control over the format and the naming of the files. I will be using
DirectShow to read and process the video files.

One obvious approach -- somewhat UNIX-like -- is to require that the four
files reside in the same directory and have names for the format xxxx.zz0,
xxxx.zz1, xxxx.zz2, xxx.zz3. My program will make sure all four are
present before trying to use them.

This should be quite reliable, because I'm delivering the files myself, but
is there a better way? Deliver them in a single ZIP file which Windows
could treat as a compressed folder? Concatenate them myself and pick them
apart at run time?


 
Reply With Quote
 
 
 
 
simida
Guest
Posts: n/a
 
      27th Jul 2006
It's a proper way that using manifest file to describe your 4 files.
you can use xml file to achieve it. your application can retrieve
information from xml file. all files reside in the same directroy.

Folder organization

Root
|
|____Videos
| |_video1
| |_video2
| |_video3
| |_video4
|
|____script file
|
|____manifest.xml

Holp this helps

Sincerely,
simida
Michael A. Covington wrote:
> I'm developing an application that will handle files in groups of 4, namely
> 3 video files plus a script saying how to put them together.
>
> These are all files that I will deliver with the app, so I have complete
> control over the format and the naming of the files. I will be using
> DirectShow to read and process the video files.
>
> One obvious approach -- somewhat UNIX-like -- is to require that the four
> files reside in the same directory and have names for the format xxxx.zz0,
> xxxx.zz1, xxxx.zz2, xxx.zz3. My program will make sure all four are
> present before trying to use them.
>
> This should be quite reliable, because I'm delivering the files myself, but
> is there a better way? Deliver them in a single ZIP file which Windows
> could treat as a compressed folder? Concatenate them myself and pick them
> apart at run time?


 
Reply With Quote
 
Michael A. Covington
Guest
Posts: n/a
 
      27th Jul 2006
Actually the script file is written in XML and can also serve as the
manifest.

("Script" is not a very good description of what it does... for proprietary
reasons I don't want to go into detail... but it is basically a manifest
with some additional information about the files besides their names.)

Thanks.

"simida" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It's a proper way that using manifest file to describe your 4 files.
> you can use xml file to achieve it. your application can retrieve
> information from xml file. all files reside in the same directroy.
>
> Folder organization
>
> Root
> |
> |____Videos
> | |_video1
> | |_video2
> | |_video3
> | |_video4
> |
> |____script file
> |
> |____manifest.xml
>
> Holp this helps
>
> Sincerely,
> simida
> Michael A. Covington wrote:
>> I'm developing an application that will handle files in groups of 4,
>> namely
>> 3 video files plus a script saying how to put them together.
>>
>> These are all files that I will deliver with the app, so I have complete
>> control over the format and the naming of the files. I will be using
>> DirectShow to read and process the video files.
>>
>> One obvious approach -- somewhat UNIX-like -- is to require that the four
>> files reside in the same directory and have names for the format
>> xxxx.zz0,
>> xxxx.zz1, xxxx.zz2, xxx.zz3. My program will make sure all four are
>> present before trying to use them.
>>
>> This should be quite reliable, because I'm delivering the files myself,
>> but
>> is there a better way? Deliver them in a single ZIP file which Windows
>> could treat as a compressed folder? Concatenate them myself and pick
>> them
>> apart at run time?

>



 
Reply With Quote
 
simida
Guest
Posts: n/a
 
      27th Jul 2006
en...Yes, I perfer to use Folder to catain all files. If it use single
ZIP file, the application will cost much time to uncompress it . It
affects performance much.If you have more elegent approach, plz mail to
me. thx.

Sincerely,
simida

Deliver them in a single ZIP file which Windows
could treat as a compressed folder?
Michael A. Covington wrote:
> I'm developing an application that will handle files in groups of 4, namely
> 3 video files plus a script saying how to put them together.
>
> These are all files that I will deliver with the app, so I have complete
> control over the format and the naming of the files. I will be using
> DirectShow to read and process the video files.
>
> One obvious approach -- somewhat UNIX-like -- is to require that the four
> files reside in the same directory and have names for the format xxxx.zz0,
> xxxx.zz1, xxxx.zz2, xxx.zz3. My program will make sure all four are
> present before trying to use them.
>
> This should be quite reliable, because I'm delivering the files myself, but
> is there a better way? Deliver them in a single ZIP file which Windows
> could treat as a compressed folder? Concatenate them myself and pick them
> apart at run time?


 
Reply With Quote
 
Laura T
Guest
Posts: n/a
 
      27th Jul 2006
If you need to support only NTFS and the users need (should) not see the
separate files, you could use NTFS data streams to create just one file with
3 or 4 streams in it.
Check
http://www.codeproject.com/csharp/NTFSStreams.asp
or
http://www.gotdotnet.com/Community/U...4-4cac36e04449

Otherwise I'd choose compressed file


"Michael A. Covington" <(E-Mail Removed)> ha scritto nel
messaggio news:(E-Mail Removed)...
> I'm developing an application that will handle files in groups of 4,
> namely 3 video files plus a script saying how to put them together.
>
> These are all files that I will deliver with the app, so I have complete
> control over the format and the naming of the files. I will be using
> DirectShow to read and process the video files.
>
> One obvious approach -- somewhat UNIX-like -- is to require that the four
> files reside in the same directory and have names for the format xxxx.zz0,
> xxxx.zz1, xxxx.zz2, xxx.zz3. My program will make sure all four are
> present before trying to use them.
>
> This should be quite reliable, because I'm delivering the files myself,
> but is there a better way? Deliver them in a single ZIP file which
> Windows could treat as a compressed folder? Concatenate them myself and
> pick them apart at run time?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird design decision in LinQ To SQL teddysnips@hotmail.com Microsoft C# .NET 7 22nd Oct 2007 06:07 AM
Weird design decision in LinQ To SQL teddysnips@hotmail.com Microsoft C# .NET 0 19th Oct 2007 05:09 PM
Help with design decision tubby Microsoft ASP .NET 1 4th Dec 2005 01:45 PM
Help on design decision with Tree structure data kurotsuke Microsoft C# .NET 7 31st Dec 2004 02:09 AM
Help on design decision with Tree structure data kurotsuke Microsoft Dot NET Framework Forms 0 23rd Dec 2004 10:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.