Digisoul Posted April 28, 2009 Share Posted April 28, 2009 Hello there, i want to know that its possible to Enum all the running Drivers and their paths in Windows XP ? i tried to find but didn't found any topic. thanks in advance for your kind help. 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Yashied Posted April 28, 2009 Share Posted April 28, 2009 Hello there,i want to know that its possible to Enum all the running Drivers and their paths in Windows XP ?i tried to find but didn't found any topic.thanks in advance for your kind help.DriveGetDrive()? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Authenticity Posted April 28, 2009 Share Posted April 28, 2009 Dim $oWMI = ObjGet('winmgmts://./root/cimv2') Dim $oSystemDrivers = $oWMI.InstancesOf('Win32_SystemDriver') ;ExecQuery('Select Win32_SystemDriver') For $oDriver In $oSystemDrivers ConsoleWrite($oDriver.Caption & @TAB & $oDriver.State & @TAB & $oDriver.Status & @LF) Next $oSystemDriver = 0 $oWMI = 0 Link to comment Share on other sites More sharing options...
Digisoul Posted April 28, 2009 Author Share Posted April 28, 2009 (edited) Dim $oWMI = ObjGet('winmgmts://./root/cimv2') Dim $oSystemDrivers = $oWMI.InstancesOf('Win32_SystemDriver') ;ExecQuery('Select Win32_SystemDriver') For $oDriver In $oSystemDrivers ConsoleWrite($oDriver.Caption & @TAB & $oDriver.State & @TAB & $oDriver.Status & @LF) Next $oSystemDriver = 0 $oWMI = 0Is it allways work ? i mean i read, that some time WMI not work properly. i want to use this script in a professional project. and 1 thing more how can i get the paths for all drivers ? Edited April 28, 2009 by Digisoul 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Digisoul Posted April 28, 2009 Author Share Posted April 28, 2009 DriveGetDrive()?Not Physical Drives, i mean Drivers e.g :VGA , SOUND CARD and other drivers. 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Yashied Posted April 28, 2009 Share Posted April 28, 2009 Not Physical Drives, i mean Drivers e.g :VGA , SOUND CARD and other drivers.Ahh..., maybe http://www.autoitscript.com/forum/index.php?showtopic=77731. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
weaponx Posted April 28, 2009 Share Posted April 28, 2009 My device management udf doesn't currently have driver options but I can try adding them. Link to comment Share on other sites More sharing options...
Authenticity Posted April 28, 2009 Share Posted April 28, 2009 Is it allways work ? i mean i read, that some time WMI not work properly. i want to use this script in a professional project.and 1 thing more how can i get the paths for all drivers ?Don't know but I think that it's very likely.If it's defined then the object's PathName property contains the path to the .sys file which is (almost always?) @SystemDir\DRIVERS. Link to comment Share on other sites More sharing options...
Digisoul Posted April 28, 2009 Author Share Posted April 28, 2009 Don't know but I think that it's very likely.If it's defined then the object's PathName property contains the path to the .sys file which is (almost always?) @SystemDir\DRIVERS.Ya all drivers exists in @SystemDir/Drivers , but how can i know that what is the file name. I am making the application which will check the all running drivers and add them in the list . your previous script help me a bit , but now i want to catch there paths ? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Digisoul Posted April 28, 2009 Author Share Posted April 28, 2009 Ahh..., maybe http://www.autoitscript.com/forum/index.php?showtopic=77731.Any other ref ? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
weaponx Posted April 28, 2009 Share Posted April 28, 2009 (edited) You could use Nirsoft DriverView and dump all of the loaded drivers to a CSV or XML file. Edited April 28, 2009 by weaponx Link to comment Share on other sites More sharing options...
Digisoul Posted April 28, 2009 Author Share Posted April 28, 2009 You could use Nirsoft DriverView and dump all of the loaded drivers to a CSV or XML file.Thanks for the Tip weaponx.so isn't there any Direct example, without using other utilities? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
weaponx Posted April 28, 2009 Share Posted April 28, 2009 Thanks for the Tip weaponx.so isn't there any Direct example, without using other utilities?Well like I said, my Device Management UDF is built upon setupapi.dll which is what Devcon uses. The task of listing loaded drivers isn't exactly cake though. I will look around and see what I can find. Link to comment Share on other sites More sharing options...
weaponx Posted April 28, 2009 Share Posted April 28, 2009 Take a look at this post:#521054This uses psapi.dll which is the same thing used by Nirsoft DriverView. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now