Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for drivers.bat

(view source code of drivers.bat as plain text)

  1. @ECHO OFF
  2. IF [%1]==[] GOTO Go
  3. ECHO.
  4. ECHO Drivers.cmd,  Version 2.01 for Windows NT / 2000 / XP and OS/2 Warp
  5. ECHO Display all active drivers
  6. ECHO.
  7. ECHO Usage:  DRIVERS
  8. ECHO.
  9. ECHO OS/2 version uses CUT.CMD available at
  10. ECHO http://www.robvanderwoude.com/cut.html
  11. ECHO.
  12. ECHO Windows version uses DEVCON.EXE available at
  13. ECHO http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272
  14. ECHO.
  15. ECHO Written by Rob van der Woude
  16. ECHO http://www.robvanderwoude.com
  17. GOTO End
  18.  
  19. :Go
  20. IF     "%OS%"=="Windows_NT" FOR /F "tokens=1*" %%A IN ('DEVCON.EXE driverfiles * ^| FIND "Name:"') DO ECHO.%%B
  21. IF NOT "%OS%"=="Windows_NT" RMVIEW.EXE /D | FIND "Driver: " | CUT -F:2 | CUT -F:1 -L:1 -D:"  -  Non-"
  22.  
  23. :End
  24.  

page last uploaded: 2017-08-21, 14:26