add file version to a new text file
-
Hi All, I can see that exe files have file info including company name, version, ... How do I add the same information to a text file? Thanks, Henry
henryh
-
No way except writing that in the file itself. That informations are put in specific fields of the file with a well defined format that Windows understand and show you as field in its Property Dialog.
-
Hi All, I can see that exe files have file info including company name, version, ... How do I add the same information to a text file? Thanks, Henry
henryh
Hi, You could implement a property set handler. Check out the IPropertySetStorage interface[^]. Hope you have experience with COM. :-\ Property System Overview[^] Property System Code Samples[^] EnumAll Sample[^] Best Wishes, -David Delaune
-
No way except writing that in the file itself. That informations are put in specific fields of the file with a well defined format that Windows understand and show you as field in its Property Dialog.
-
Hi All, I can see that exe files have file info including company name, version, ... How do I add the same information to a text file? Thanks, Henry
henryh
-
No way except writing that in the file itself. That informations are put in specific fields of the file with a well defined format that Windows understand and show you as field in its Property Dialog.
-
You can do this by creating an alternate stream on the file. See http://msdn.microsoft.com/en-us/library/windows/desktop/aa364404(v=vs.85).aspx[^].
-
Hi, Fairly certain that he is referring to the 'File Property' dialog box displayed by explorer. Best Wishes, -David Delaune
-
I agree, but streams do offer a potential solution, depending on what the 'real' requirements are. BTW, haven't seen you about recently; trust you are OK.
Hi Guys, Thanks for the information. The information I want to attach to a file are details as in the following: File description: Type: File version: Product name: ... As I have a hex record file (text format), I want to know what File version so I can decide to use it or not, says for programming a device. I can use FileVersionInfo to read these info, but I don't know to set them to a text file. I guess the text file does not have these properties. Thanks, Henry
henryh
-
-
Hi Guys, Thanks for the information. The information I want to attach to a file are details as in the following: File description: Type: File version: Product name: ... As I have a hex record file (text format), I want to know what File version so I can decide to use it or not, says for programming a device. I can use FileVersionInfo to read these info, but I don't know to set them to a text file. I guess the text file does not have these properties. Thanks, Henry
henryh
-
Hi All, I can see that exe files have file info including company name, version, ... How do I add the same information to a text file? Thanks, Henry
henryh
To my knowledge, text files do not meta data, which is where you would store things like company name, author, version, etc. For text files, the file system keeps track of simple things like date, time, and attributes.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles