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.

33 lines
715 B

  1. <HTML>
  2. <HEAD>
  3. <TITLE>DeviceConsole: List all devices</TITLE>
  4. <HTA:APPLICATION>
  5. </HEAD>
  6. <BODY>
  7. <H1>Devices:</H1>
  8. <SCRIPT LANGUAGE=vbscript>
  9. <!--
  10. SET DevCon = CreateObject("DevCon.DeviceConsole")
  11. SET Devs = DevCon.AllDevices
  12. Count = Devs.Count
  13. document.write "<b>There are "+CStr(Count)+" devices:</b><br>"
  14. 'on error resume next
  15. FOR EACH Dev IN Devs
  16. IF Dev.IsRunning THEN
  17. document.write "<font color=""#008000"">"
  18. ELSEIF Dev.HasProblem THEN
  19. document.write "<font color=""#FF0000"">"
  20. ELSE
  21. document.write "<font color=""#FF8000"">"
  22. END IF
  23. document.write Dev.Description + "</font><br>"
  24. NEXT
  25. -->
  26. </SCRIPT>
  27. </BODY>
  28. </HTML>