03-11-2014 10:53 AM
Hi,
I was looking for a way to read the "Versions" File property of an EXE that was built in C++ (or any other EXE). I would like my application to read it programmatically instead of having the information in some other file that my application reads.
Thanks,
Gary
Solved! Go to Solution.
03-11-2014 11:33 AM
Hello glstill,
There is a pretty good discussion of that problem as well as a few possible solutions using .NET or the WinAPI offered in this thread from 2006:
LabVIEW thread: File version info
http://forums.ni.com/t5/LabVIEW/File-version-info/m-p/361945?jump=true
Some of the .NET information may be out of date, but the discussion is relevant and a few people have provided code to do more or less what I think you're looking for.
Another pretty clean looking and more recent example is available here on the NI Developer Community:
Example: Get File Version Information for EXE’s and DLL’s
https://decibel.ni.com/content/docs/DOC-13866
Best Regards,