Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the Version Number of a file 2

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
How can you determine the version number of a file?

I can see this version number by right clicking the file name in explorer and clicking on the version tab.

Is there a way to do this programatically?

 

Dim oFso As New FileSystemObject
Debug.Print oFso.GetFileVersion("FilePAthAndName") [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
You can get the version by using the GetFileVersion() method of Scripting.FileSystemObject.

Dim fso as New FileSystemObject
Dim sVer as String

sVer = fso.GetFileVersion("file.dll")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top