Version Number of a an external application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Unlhbg==?=

    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?
  • kimiraikkonen

    #2
    Re: Version Number of a an external application

    On May 9, 1:46 am, Ryan <R...@discussio ns.microsoft.co mwrote:
    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.Diagnost ics namespace.

    For example, you can get file version:
    Dim info As System.Diagnost ics.FileVersion Info
    info = System.Diagnost ics.FileVersion Info.GetVersion Info("c:\rich-text-
    editor.exe")
    MsgBox(info.Fil eVersion.ToStri ng)

    Look at other properties and method members under
    "System.Diagnos tics.FileVersio nInfo" to get more info about process's
    name and version info.

    Hope this helps,

    Onur Güzel

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Version Number of a an external application

      "Ryan" <Ryan@discussio ns.microsoft.co mschrieb:
      >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:

      'FileVersionInf o'.

      Assembly version number:

      'Assembly.Load* ', 'Assembly.GetNa me', 'AssemblyName.V ersion'.

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

      Comment

      Working...