Forum Discussion

hc_vinod's avatar
hc_vinod
Occasional Contributor
9 years ago
Solved

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

 

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

     

    :smileywink:

  • 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); 

     

5 Replies

      • Colin_McCrae's avatar
        Colin_McCrae
        Community Hero

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

         

        :smileywink:

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    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); 

     

    • hc_vinod's avatar
      hc_vinod
      Occasional Contributor

      Thanks Hkosova,

       

      i was using ProdctVersion instead of ProductFullVersion