Re: Additional info in file
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Sat, 17 May 2008 22:15:09 -0500
"B. Nelsen" <b.nelson@xxxxxxxxx> wrote in message
news:eQmxp6IuIHA.548@xxxxxxxxxxxxxxxxxxxxxxx
Hello again,
can I store additional info about a file in its "header" (like "author",
"modified at", etc) so that it doesn't affect the file in any way? Until
now I always included a .txt file holding this information, but I feel a
bit stupid about that. Maybe there is a more convenient way to do this.
My "information" would include info like a description of what's inside
a file.
And... the most important way why I did this: I wanted my application to
recognize a special format.
For example: All .mdb files are files that I can import. But my
application can only import .mdb files that were exported BY my
application, so I had to restrict it... I did this by an accompanying
.txt file which told my app "This is a file you can import". All other
.mdb files are ignored.
Thanks!
There are various tools available to you.
If you are going to use Office files and you don't mind if users can open
the file without going through your 'application' then you can use the
built-in DSO properties to provide this information. This is what you see if
you right-click on an Office document in Explorer and select Properties -
the Author, Comments, etc.
"The Dsofile.dll files lets you edit Office document properties when you do
not have Office installed" (Or even if you do. <g>)
http://support.microsoft.com/kb/224351
If you want to insure that only your application can open those files, then
merely attach a "header" as you suggested. The header will cause the file to
not be loaded with regular Office products (Except perhaps Word which might
see it as a text file). Your app can open the file strip the header, and
write the rest out to a temp/perment location.
Probably need more information if neither of these simple strategies aren't
applicable.
hth
-ralph
.
- References:
- Additional info in file
- From: B. Nelsen
- Additional info in file
- Prev by Date: Additional info in file
- Next by Date: Re: Rapid gfx display Qs
- Previous by thread: Additional info in file
- Index(es):
Relevant Pages
|