Ah, so you are actually asking how do I get the version information that it outputs to the console screen. It depends, if it includes a native version resource, FileVersionInfo will provide what you need. Otherwise, you can have .NET capture the output for you by following instructions in the remarks section on the following page:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.beginoutputreadline.aspx -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ian Thomas Sent: Monday, February 28, 2011 7:15 PM To: 'ozDotNet' Subject: RE: Get version of native Windows 32 executable The executable was compiled (by others) with GCC / MinGW - I should have been clearer (ie, not really a Win32 native app is it?) I will have to do some searching, I think. My crude approach has been to redirect its I/O to a file and parse it for the version info (it is a command line app). ________________________________ Ian Thomas Victoria Park, Western Australia -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Kean Sent: Tuesday, March 01, 2011 9:57 AM To: ozDotNet Subject: RE: Get version of native Windows 32 executable FileVersionInfo -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ian Thomas Sent: Monday, February 28, 2011 5:47 PM To: 'ozDotNet' Subject: Get version of native Windows 32 executable I need to get the version info from an EXE that is run as a process from my .NET WinForms application, and put it into a log file. (Over time, the version of the native application changes). Do I need to use a Win32 API call for this? ________________________________ Ian Thomas Victoria Park, Western Australia
