hc_vinod
10 years agoOccasional Contributor
how to get product version of an exe
Hi , I need to extra prodct version of an exe i am able to get version nmber bt not product Version number Kindly help me extarcting prodct version
- 10 years ago
You don't state the language you're using.
However, there are answers on here: http://stackoverflow.com/questions/2976734/how-to-retrieve-a-files-product-version-in-vbscript
Showing how to do it in VBScript.
It you are using a different scripting language, the bulk of it should be the same (the important bits anyway - the object and it;s properties). You'll just to translate it accordingly.
- 10 years ago
Amazing what a couple of minutes on google can turn up. (It was the first search result)
:smileywink:
- 10 years ago
TestComplete has a built-in solution for that:
aqFileSystem.GetFileInfo(path).VersionInfo.ProductFullVersion.
// JScript
var strPath = "C:\\Windows\\notepad.exe" var verInfo = aqFileSystem.GetFileInfo(strPath).VersionInfo; Log.Message(verInfo.ProductFullVersion);