470,636 Members | 1,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Version Number of a an external application

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?
Jun 27 '08 #1
2 4543
On May 9, 1:46 am, Ryan <R...@discussions.microsoft.comwrote:
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
Jun 27 '08 #2
"Ryan" <Ry**@discussions.microsoft.comschrieb:
>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/>

Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by joanne | last post: by
5 posts views Thread by Nathan | last post: by
5 posts views Thread by Lyners | last post: by
reply views Thread by ev951 | last post: by
14 posts views Thread by Phil | last post: by
1 post views Thread by Korara | last post: by
???
reply views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.