标签:
Function GetVer(FilePathName As String) As String If FilePathName = Nothing Or FilePathName = "" Then FilePathName = App.Path & "\" & App.EXEName & ".exe" End If Dim fso As FileSystemObject Set fso = New FileSystemObject Dim fver As String, verStr() As String If Dir(FilePathName, vbNormal) = "" Then GetVer = "Eroor:" & FilePathName & "???" Exit Function End If GetVer = fso.GetFileVersion(FilePathName) End Function
标签:
原文地址:http://www.cnblogs.com/ilookbo/p/4846625.html