Re: Additional info in file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"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



.



Relevant Pages

  • Additional info in file
    ... can I store additional info about a file in its "header" so that it doesn't affect the file in any way? ... 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". ...
    (microsoft.public.vb.general.discussion)
  • Re: QRe: Legacy Access 2 VB 4 app, Word 11 merge on XP Pro SP2 client
    ... I would simply write a short interim app ... > linked tables to connect to the data in the legacy .mdb files. ... it's not a DLL but essentially the whole of Access 2.0 with the ... > location for your Office 2003 installation, ...
    (microsoft.public.access.conversion)
  • Re: HELP.. Looks good BUT..
    ... needed only at NEW EXCEL APP. ... However on click it just runs NEW EXCEL ... > Dim xclApp As New Excel.Application ... > ' Create the header row ...
    (microsoft.public.vb.general.discussion)
  • Re: Linking to tables in Firebird or other db
    ... > I have an Access 2003 application that is split into two .mdb files for ... > the interfaces and data. ... This app is distributed on a CD to be used on ... > sent on CD so that the user only needs to replace a single file. ...
    (comp.databases.ms-access)
  • Linking to tables in Firebird or other db
    ... I have an Access 2003 application that is split into two .mdb files for ... the interfaces and data. ... This app is distributed on a CD to be used on ... sent on CD so that the user only needs to replace a single file. ...
    (comp.databases.ms-access)