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?

Re: Version Number of a an external application by kimiraikkonen

kimiraikkonen
Thu May 08 18:19:22 CDT 2008

On May 9, 1:46 am, Ryan <R...@discussions.microsoft.com> wrote:
> I am using vb.net to launch an external application (.exe); how do I captu=
re
> this external applications's version number in my vb.net app?

Hi Ryan,
=2ENET 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 =3D 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=FCzel

Re: Version Number of a an external application by Herfried

Herfried
Sat May 10 12:23:42 CDT 2008

"Ryan" <Ryan@discussions.microsoft.com> schrieb:
>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'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>