In NT4 (not sure about other OS's) when you right click on an EXE and look at it's properties, there is a version tab.
Is there any way in VB to get that info ? Specificly version number ?
Thanks.
Printable View
In NT4 (not sure about other OS's) when you right click on an EXE and look at it's properties, there is a version tab.
Is there any way in VB to get that info ? Specificly version number ?
Thanks.
If you look up these APIs you find what you're looking for:
GetFileVersionInfo
GetFileVersionInfoSize
VerQueryValue
Be Warned, however, these are fairly complex API functions and require a lot of reading to use correctly, too much to put here.
You can find info in MSDN, or at www.vbapi.com
Good luck!
if you are talking about your own project's exe just use the App.Major and App.Minor properties to get the major and minor version numbers, respectively. enjoy.
Check out the Code Snippet I've posted on PlanetSourceCode that retrieve that information.
Thanks Surge, that was exactly what I needed.