Getting driver file version information via vbscript or VB 
Author Message
 Getting driver file version information via vbscript or VB

Sorry for the x-post, but figured VB and VBScript groups made the most sense
for this question.

Is there anyway to get the version information for a driver file such as
atapi.sys located in C:\WINNT\SYSTEM32\DRIVERS. Right now, you can select
the file, right click, and get a version tab on the file information window.
From there, you can select Product Version to see the manufacturers version
number.

I'd really like to get at this info programmatically, even better if I could
do it via vbscript, but would do in VB if I really have to. Is there any
object that exposes that property? FileSystemObject.File doesn't seem to
have any such property.

Any help would be appreciated. Thanks in advance,

Don Whitlow



Sun, 18 Jan 2004 22:33:21 GMT  
 Getting driver file version information via vbscript or VB
GetFileVersion Method (FSO)
http://msdn.microsoft.com/scripting/vbscript/doc/vsmthGetFileVersion.htm

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> Sorry for the x-post, but figured VB and VBscript groups made the most sense
> for this question.

> Is there anyway to get the version information for a driver file such as
> atapi.sys located in C:\WINNT\SYSTEM32\DRIVERS. Right now, you can select
> the file, right click, and get a version tab on the file information window.
> From there, you can select Product Version to see the manufacturers version
> number.

> I'd really like to get at this info programmatically, even better if I could
> do it via vbscript, but would do in VB if I really have to. Is there any
> object that exposes that property? FileSystemObject.File doesn't seem to
> have any such property.

> Any help would be appreciated. Thanks in advance,

> Don Whitlow



Sun, 18 Jan 2004 22:39:07 GMT  
 Getting driver file version information via vbscript or VB
It appears you want code as detailed at
http://www.mvps.org/vbnet/code/fileapi/filesearchinfo.htm that uses the
GetFileVersionInfo API.

--

Randy Birch
MVP Visual Basic

http://www.mvps.org/vbnet/

Please respond only to the newsgroups so all can benefit.


: Sorry for the x-post, but figured VB and VBscript groups made the most
sense
: for this question.
:
: Is there anyway to get the version information for a driver file such as
: atapi.sys located in C:\WINNT\SYSTEM32\DRIVERS. Right now, you can select
: the file, right click, and get a version tab on the file information
window.
: From there, you can select Product Version to see the manufacturers
version
: number.
:
: I'd really like to get at this info programmatically, even better if I
could
: do it via vbscript, but would do in VB if I really have to. Is there any
: object that exposes that property? FileSystemObject.File doesn't seem to
: have any such property.
:
: Any help would be appreciated. Thanks in advance,
:
: Don Whitlow
:
:



Sun, 18 Jan 2004 23:11:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting driver file version information via vbscript or VB

2. Getting file summary information via vbscript?

3. Getting an EXE Version via VBScript

4. Help: Getting file description (in Version Information)

5. VerQueryValue API - getting a files version information

6. Getting information about files on servers via Socket-Control

7. Getting File Version in VBScript

8. Getting file Versions in VBSCRIPT

9. Getting a File Version using VBScript

10. Getting Device Driver Information

11. Pulling device driver information using vbscript and WMI.

12. Retrieving File Version information in VB

 

 
Powered by phpBB® Forum Software