參考引用來源:How to Get Version of an Executable file?
--
Private Function GetFileVersionInfo(ByVal filename As String) As Version
Return Version.Parse(FileVersionInfo.GetVersionInfo(filename).FileVersion)
End Function
Usage:
Debug.WriteLine(GetFileVersionInfo("C:\ptl\bin\capcaller.exe").ToString)
Output:
4.2.9.281
沒有留言:
張貼留言