473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 4790
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and...
4
by: sbxjld | last post by:
Hi, who could tell me if there is a SYSIBM table that would give me the current db2 version accessed (on MVS) - i.e. Oracle offers a v$version system table that gives that information. Thanks...
12
by: joanne | last post by:
how to tell application version after i installed it at client side? i did make the version and product code while doing the packaging and deployment. Thanks a lot.
5
by: Nathan | last post by:
I have a VB project with a setup project in the same solution. Each time I rebuild the setup project, I change the Version number in the setup project's properties. Is there any way for my VB...
7
by: Sky | last post by:
I have been looking for a more powerful version of GetType(string) that will find the Type no matter what, and will work even if only supplied "{TypeName}", not the full "{TypeName},{AssemblyName}"...
5
by: Lyners | last post by:
I have a VB.NET application that is deployed to an end user. I would like to display on screen the application version of the application so that I know the end user id using the latest version of...
0
by: ev951 | last post by:
I am not that familiar with XML or XSL and I am trying to sort application version number strings in an XML file that my team uses for application installations on our Linux servers. I have tried...
6
by: John | last post by:
I have written a VB.NET DLL that is called by a third party program. If I make any changes in the DLL and then try to replace my DLL file the third party program will abort, saying that the DLL...
14
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.