Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. '
  2. ' test8.vbs
  3. '
  4. ' get current driver
  5. '
  6. SET WshShell = WScript.CreateObject("WScript.Shell")
  7. SET DevCon = WScript.CreateObject("DevCon.DeviceConsole")
  8. SET Devs = DevCon.DevicesBySetupClasses("NET")
  9. Count = Devs.Count
  10. Wscript.Echo "net: Count="+CStr(Count)
  11. 'on error resume next
  12. FOR EACH Dev IN Devs
  13. WScript.Echo Dev + ": " + Dev.Description
  14. Set Driver = Dev.CurrentDriverPackage
  15. IF NOT (Driver IS Nothing) THEN
  16. WScript.Echo "Driver: "+Driver.ScriptFile+" [" + Driver.ScriptName+"]"
  17. WScript.Echo "Device Description: "+Driver.Description
  18. WScript.Echo "Driver Description: "+Driver.DriverDescription
  19. WScript.Echo "Provider: "+Driver.Provider
  20. WScript.Echo "Manufacturer: "+Driver.Manufacturer
  21. WScript.Echo "Date: "+FormatDateTime(Driver.Date,vbLongDate)
  22. WScript.Echo "Version: "+Driver.Version
  23. WScript.Echo "Hardware IDs: "+Join(Driver.HardwareIds," ")
  24. WScript.Echo "Compatible IDs: "+Join(Driver.CompatibleIds," ")
  25. WScript.Echo "Driver files: "+Join(Driver.DriverFiles," ")
  26. WScript.Echo "Manifest: "+Join(Driver.Manifest," ")
  27. END IF
  28. NEXT
  29. SET Dev = nothing
  30. SET Driver = nothing
  31. SET Devs = nothing
  32. SET DevCon = nothing
  33. SET WshShell = nothing