Version Number of a an external application

R

Ryan

I am using vb.net to launch an external application (.exe); how do I capture
this external applications's version number in my vb.net app?
 
K

kimiraikkonen

I am using vb.net to launch an external application (.exe); how do I capture
this external applications's version number in my vb.net app?

Hi Ryan,
.NET provied easy access to a process's version info using
FileVersionInfo class located under System.Diagnostics namespace.

For example, you can get file version:
Dim info As System.Diagnostics.FileVersionInfo
info = System.Diagnostics.FileVersionInfo.GetVersionInfo("c:\rich-text-
editor.exe")
MsgBox(info.FileVersion.ToString)

Look at other properties and method members under
"System.Diagnostics.FileVersionInfo" to get more info about process's
name and version info.

Hope this helps,

Onur Güzel
 
H

Herfried K. Wagner [MVP]

Ryan said:
I am using vb.net to launch an external application (.exe); how do I
capture
this external applications's version number in my vb.net app?

Win32 version resource:

'FileVersionInfo'.

Assembly version number:

'Assembly.Load*', 'Assembly.GetName', 'AssemblyName.Version'.
 

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