File Versions information
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
File Versions information
I'm wanting to be able to have an HTA read from another HTA and get file information such as version number. What are the best methods for doing this?
File Versions information
HTA files have no file version information. This is reserved for EXEs and DLL files or any file that is classified as an "executable' or "resource" along with a few other types.
An HTA file is a text file very similar to an HTML file.
If you mean that you need to read information out of a file then look into using the "FileSystemObject" with "ReadLine" and "InStr" to extract information.
jvierra2008-03-31 07:39:09
An HTA file is a text file very similar to an HTML file.
If you mean that you need to read information out of a file then look into using the "FileSystemObject" with "ReadLine" and "InStr" to extract information.
jvierra2008-03-31 07:39:09
File Versions information
What method would you use to edit the file information on a standalone exe?
File Versions information
Depending on the Exe, modifying its header might also break a digital signature rendering the file useless.
File Versions information
The easiest way to get the version number is probably to use the WMI CIM_DataFile class or one of its derivatives.
File Versions information
That's only if the file is installed. If I'm checking the version of a script or a group of scripts compiled into an EXE then it won't work.
File Versions information
Depending on the Exe, modifying its header might also break a digital signature rendering the file useless.Good point -- if the file is signed, modifying the resource will invalidate the signature.Bill