To get program version of any file

  • Thread starter Thread starter BlackSun
  • Start date Start date
B

BlackSun

Hi,
I need to get the number of the version of Windows Media Player (or
other application).
How can I get it?

Thanks in advance for your help!

Cheers
BlackSun
 
Hi,
I need to get the number of the version of Windows Media Player (or
other application).
How can I get it?

Thanks in advance for your help!

Cheers
BlackSun

Hi,

To get file version, you can use FileVersionInfo class under
System.Diagnostics namespace.

For example, for Windows Media Player, GetVersionInfo can return
version using specified path, wmplayer.exe

Dim version As System.Diagnostics.FileVersionInfo
version = _
FileVersionInfo.GetVersionInfo _
("C:\Program Files\Windows Media Player\wmplayer.exe")
' Display it in msgbox
MsgBox(version.FileVersion)

Hope this helps,

Onur Güzel
 
Hi,

To get file version, you can use FileVersionInfo class under
System.Diagnostics namespace.

For example, for Windows Media Player, GetVersionInfo can return
version using specified path, wmplayer.exe

Dim version As System.Diagnostics.FileVersionInfo
version = _
FileVersionInfo.GetVersionInfo _
("C:\Program Files\Windows Media Player\wmplayer.exe")
' Display it in msgbox
MsgBox(version.FileVersion)

Hope this helps,

Onur Güzel

Hi,
thank you very much. Perfect :-)

Cheers
BlackSun
 
Back
Top