Click to See Complete Forum and Search --> : File Properties


aio
January 19th, 2003, 04:30 PM
Some file properties (like the Author in an Excel file in the attached example) are displayed when that said file is selected or "mouse-hovered" in the Windows Explorer like Windows XP. I presume therefore that this information is in-placed somewhere in the file -- a location that is recognized by Windows.

Can anyone help me on how am I going to do this? A tip, a link, or an advice on the file structure will probably do enough.

I know how to create my own file format using Binary Access in VB but I think this is more of a Window's file format question rather than a VB programming question.

Thanks in anticipation.

Kheun
January 20th, 2003, 03:44 AM
Hi, I think GetFileVersionInfo() and VerQueryValue() Win32 APIs are what you are looking for. Let me know if it works. :)

aio
February 4th, 2003, 06:37 PM
Sorry I wasn't able to return immediately. I was on the road for several weeks.


Thanks Kheun.

but your suggestion refers to those files already created by other programs.


What I want is .....
1. create my own file format
2. in that file, I can insert some properties (like author) that Windows can easily recognize and display in the property window or tip when mouse-hovered.

I can easily do the #1 using VB but have no idea on #2.

I think the question is where or what part of the file can I insert the property info so Windows can recognize it as file properties.

Thanks again for everyone that tries.