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!

File version ?

Status
Not open for further replies.

hanglam

Programmer
Dec 11, 2002
143
US
Hi,

For one of projects, I need to write a program that can retrieve the version number of a .dll .

My questions is how do I that with VB.NET ? I can search for the file to make sure the file exists in the directory specified, but how do I retrieve its version number ?

Thanks,
Hang
 
Here it is:


Dim FileProperties As FileVersionInfo = FileVersionInfo.GetVersionInfo("filepath")
MsgBox(FileProperties.FileVersion)
 
TipGiver,

Thanks for the help. I didn't know about the FileVersionInfo class.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top