Need to determine executable file version 
Author Message
 Need to determine executable file version

I need to extract any windows program executables file version so I can
determine whether or not to
update the source with a fresh copy.

Is there some way in VB to extract a file's version?

Please email if you have a solution....



Tue, 11 Dec 2001 03:00:00 GMT  
 Need to determine executable file version

Use the App object:

MsgBox App.Title & (" version ") & (App.Major) & (".") & (App.Minor)

will yield something like this...

MyProgram version 2.1



Tue, 11 Dec 2001 03:00:00 GMT  
 Need to determine executable file version
Justin,
Thanks for your response, but I don't need the version of the VB app itself;
I want the VB app to extract the version of another program executable, the
name of which will be specified in the VB code.
Quote:

>Use the App object:

>MsgBox App.Title & (" version ") & (App.Major) & (".") & (App.Minor)

>will yield something like this...

>MyProgram version 2.1



Sat, 15 Dec 2001 03:00:00 GMT  
 Need to determine executable file version

<Justin,
<Thanks for your response, but I don't need the version of the VB app itself;
<I want the VB app to extract the version of another program executable, the
<name of which will be specified in the VB code.

If the executable has a version resource, you can get to it
using API calls.  GetFileVersionInfoSize  will give you the
size of the version resource.  GetFileVersionInfo  will get
the resource.  VerQueryValue  can be used to  get a pointer
to a buffer containing a  VS_FIXEDFILEINFO  structure.  You
can then  use  RtlMoveMemory  to  copy that  buffer  into a
variable of type VS_FIXEDFILEINFO.

--
Paul Marshall



Sat, 15 Dec 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Determine file type and executable version?

2. determining if a file is an executable

3. How to get file and product versions on vb executable

4. HowTo get File Version of Executable?

5. HowTo get File Version of Executable?

6. HowTo get File Version of Executable?

7. Need to determine Windows Version from VB

8. Need to Determine LEAST Amount of Files Needed

9. Determine the runtime version and compiled version?

10. determine the version of a (dll) file

11. Determining file Version via VB(word 95, 97, Excel 95 97)

12. Determining the Excel/Word file version

 

 
Powered by phpBB® Forum Software