Forum Discussion

hc_vinod's avatar
hc_vinod
Occasional Contributor
10 years ago

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  
  • Colin_McCrae's avatar
    Colin_McCrae
    10 years ago

    Amazing what a couple of minutes on google can turn up. (It was the first search result)

     

    :smileywink:

  • HKosova's avatar
    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);