473,511 Members | 15,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Design decision -- Files in groups of 4

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?
Jul 27 '06 #1
4 1514
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?
Jul 27 '06 #2
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" <yo**********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
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?

Jul 27 '06 #3
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?
Jul 27 '06 #4
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" <lo**@ai.uga.edu.for.addressha scritto nel
messaggio news:e8**************@TK2MSFTNGP06.phx.gbl...
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?


Jul 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
4783
by: grz02 | last post by:
Hi, Im an experienced database+software designer and developer, but, unfortunately, anything to do with web-programming and web-systems designs is still a pretty new area to me... (been working...
36
6323
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
0
1287
by: | last post by:
Hi everyone, Just wanted your expert opinion on the following: I'm implementing an authorization system with user/group permissions stored in a database. I have a Users table and a Group...
9
1430
by: אלחנן | last post by:
hi.. i don't know if this is the right group for this.. i have a small application which involves a windows service, and web services which bascally retrieves files, process them and zips them...
22
1727
by: lechequier | last post by:
Let's say I define a list of pairs as follows: >>l = Can anyone explain why this does not work? >>h = {}.update(l) and instead I have to go: >>h = {} >>h.update(l) to initialize a...
34
2157
by: Nate | last post by:
Scenario: In a commerce application, there is a Product class. Along with the Product class there is a form (the text that goes in the labels of the input controls) for inputting and updating...
5
1759
by: A_M_IS | last post by:
Dear valuable experts, I truly hope than You can suggest for me Your ideas how to resolve design. I developing relative small Access VB tool, for single user use only. Access version 2003, but db...
20
1501
by: Brad Pears | last post by:
I am completely new to vb .net. I am using visual Studio 2005 to redo an Access 2000 application into a .net OO application using SQL Server 2000 - so a complete rewrite and re-thinking of how...
0
2492
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.