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.

65 lines
2.2 KiB

  1. 'stop
  2. Set obj = CreateObject( "UploadManager.MPCUpload" )
  3. Function LookUpStatus( stat )
  4. Select Case stat
  5. Case 0 LookUpStatus = "UL_NOTACTIVE"
  6. Case 1 LookUpStatus = "UL_ACTIVE"
  7. Case 2 LookUpStatus = "UL_SUSPENDED"
  8. Case 3 LookUpStatus = "UL_TRANSMITTING"
  9. Case 4 LookUpStatus = "UL_ABORTED"
  10. Case 5 LookUpStatus = "UL_FAILED"
  11. Case 6 LookUpStatus = "UL_COMPLETED"
  12. Case 7 LookUpStatus = "UL_DELETED"
  13. Case Else LookUpStatus = "Unknown"
  14. End Select
  15. End Function
  16. Function LookUpMode( mode )
  17. Select Case mode
  18. Case 0 LookUpMode = "UL_BACKGROUND"
  19. Case 1 LookUpMode = "UL_FOREGROUND"
  20. Case Else LookUpMode = "Unknown"
  21. End Select
  22. End Function
  23. Function LookUpHistory( history )
  24. Select Case history
  25. Case 0 LookUpHistory = "UL_HISTORY_NONE"
  26. Case 1 LookUpHistory = "UL_HISTORY_LOG"
  27. Case 2 LookUpHistory = "UL_HISTORY_LOG_AND_DATA"
  28. Case Else LookUpHistory = "Unknown"
  29. End Select
  30. End Function
  31. For Each job In obj
  32. wscript.Echo "ID " & job.JobID
  33. wscript.Echo "Sig " & job.Sig
  34. wscript.Echo "Server " & job.Server
  35. wscript.Echo "Provider " & job.ProviderID
  36. wscript.Echo "Status " & LookUpStatus ( job.Status )
  37. wscript.Echo "History " & LookUpHistory( job.History )
  38. wscript.Echo "Mode " & LookUpMode ( job.Mode )
  39. wscript.Echo "Priority " & job.Priority
  40. wscript.Echo "PersistToDisk " & job.PersistToDisk
  41. wscript.Echo "Compressed " & job.Compressed
  42. wscript.Echo "Priority " & job.Priority
  43. wscript.Echo "Sent Bytes " & job.SentSize
  44. wscript.Echo "Total Bytes " & job.TotalSize
  45. wscript.Echo "Error Code " & Hex ( job.ErrorCode )
  46. wscript.Echo "Created on " & job.CreationTime
  47. wscript.Echo "Completed on " & job.CompleteTime
  48. wscript.Echo ""
  49. Next