码迷,mamicode.com
首页 > 其他好文 > 详细

VB 获取文件版本

时间:2015-09-29 18:36:37      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

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

 

VB 获取文件版本

标签:

原文地址:http://www.cnblogs.com/ilookbo/p/4846625.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!