How to Retrieve a File's “Product Version” in VBScript

前端 未结 5 919
你的背包
你的背包 2020-12-16 20:25

I have a VBScript that checks for the existence of a file in a directory on a remote machine. I am looking to retrieve the \"Product Version\" for said fil

5条回答
  •  悲&欢浪女
    2020-12-16 20:56

    I don't think you can do it in vbScript. I could be wrong on that.

    Here is as link to a powershell script that does what you are asking.

    link text

    Here is what the output for my windows dir looks like.

        PS Scripts:\> ls c:\windows\*.exe | .\get-fileversion.ps1
    
    ProductVersion   FileVersion      FileName
    --------------   -----------      --------
    2.7.3.0          2.7.3.0          C:\windows\agrsmdel.exe
    

提交回复
热议问题