To get program version of any file

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
 
O

Onur Güzel

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
 
B

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,
thank you very much. Perfect :)

Cheers
BlackSun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top