China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 03:33
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to use vbs to read the version information of all drivers on the computer View 1,629 Replies 10
Original Poster Posted 2006-09-19 08:34 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
Just encountered a script problem. Read the version information of all drivers of the computer. Spent a long time checking with scriptomatic2. Still didn't find it. There are only reading the version of the graphics card driver, CPU, AUDIO, PCMCIA, etc. There is no driverversion property mentioned. Depressed.

The system's own Device Manager & System Information can read the version information of all drivers. Why doesn't WMI have this method or property!!.
Please ask all experts if you can give pointers on how to achieve reading the version information of all drivers of the computer!!!!
知识在于不断积累
Floor 2 Posted 2006-09-19 08:56 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
It seems that if WMI can't achieve it, there's probably no way out. Let's see the version line of the sys?

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-09-19 08:59 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
What is sys?!. WMI might be that I didn't find it.!. I dare not say that I'm sure there is no attribute for checking the version.!. Hehe, trouble everyone to help take a look again.
知识在于不断积累
Floor 4 Posted 2006-09-19 09:56 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Try this:


filever %WinDir%\System32\Drivers\



filever /?
filever.exe ]

/S Displays files in specified directory and all subdirectories.
/V List verbose version information if available.
/E List executables only.
/X Displays short names generated for non-8dot3 file names.
/B Uses bare format (no dir listing).
/A Don't display file attributes.
/D Don't display file date and time.
Attachments
filever.rar (6.55 KiB, Credits to download 1 pts, Downloads: 14)

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 5 Posted 2006-09-21 05:46 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
The one you have is for file operations. Reading the DRIVER file. It seems not in line with the version information of reading the standard drivers of all computers.
知识在于不断积累
Floor 6 Posted 2006-09-21 08:15 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
No practice, no voice
Attachments
nv.JPG

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 7 Posted 2006-09-21 22:38 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
Not bad...........But in this case, you need to find all driver files. I listed and read the SYS files in WINDOWS\SYSTEM32\DRIVERS, but some are still not listed. Maybe the driver is not in the DRIVERS directory!

The computer hardware configuration is different, and it seems very troublesome to find all driver files... Is there a relatively simple method?
By the way, what does the "NV4" parameter in your picture mean?
知识在于不断积累
Floor 8 Posted 2006-09-21 22:44 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
The attached picture is in the following link
http://zhenlove.com.cn/cndos/fileup/files/3.jpg
By the way, how to attach files in the post? I don't know how to attach files, so I can only use a link, he he
知识在于不断积累
Floor 9 Posted 2006-09-21 23:41 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
Method 1 (can only get the path and name of the driver file):
driverquery /fo list /v | findstr /i "path"

Of course, you can also add "display name" in the query character of findstr.


Method 2 (can get the version of the driver file, and need to separate it with for):
First, collect the driver-related information into driver.nfo
start msinfo32 /categories +swenvsigneddrivers /nfo driver

Then use for, type, findstr to operate. For example:
type driver.nfo | findstr /i "driver version"


Attachment: Can you use DOS commands to find out the computer configuration
Floor 10 Posted 2006-09-22 01:55 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Still, the moderator is amazing, give a thumbs up

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 11 Posted 2006-09-26 01:47 ·  中国 江苏 苏州 电信
中级用户
★★
过度热情
Credits 321
Posts 139
Joined 2006-03-21 17:19
20-year member
UID 52521
Gender Male
Status Offline
Oh, strong..! I also used msinfo before but never noticed it has parameters.! Hehe. Ashamed.!
知识在于不断积累
Forum Jump: