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.

55 lines
1.3 KiB

  1. '
  2. ' Enums for IMPCUploadJob.Mode
  3. '
  4. Const UL_MODE_BACKGROUND = &H0
  5. Const UL_MODE_FOREGROUND = &H1
  6. 'stop
  7. Set oArguments = wscript.Arguments
  8. If oArguments.length > 0 then
  9. Id = oArguments.Item(0)
  10. End If
  11. History = 0
  12. Compressed = false
  13. PersistToDisk = true
  14. If oArguments.length > 1 then
  15. History = CInt(oArguments.Item(1))
  16. End If
  17. If oArguments.length > 2 then
  18. Compressed = CBool(oArguments.Item(2))
  19. End If
  20. If oArguments.length > 3 then
  21. PersistToDisk = CBool(oArguments.Item(3))
  22. End If
  23. Set obj = CreateObject( "UploadManager.MPCUpload" )
  24. Set job = obj.CreateJob()
  25. job.Sig = "{2B12E858-F61B-11d2-938E-00C04F72DAF7}"
  26. 'job.Server = "http://localhost/pchealth/uploadserver.dll"
  27. 'job.Server = "http://pchts1/pchealth_esc/uploadserver.dll"
  28. 'job.Server = "http://beta.mspchealth.com/pchealth_esc/UpLoadServer.dll"
  29. job.Server = "http://dmassare2/pchealth/uploadserver.dll"
  30. 'job.Server = "http://131.107.161.55/pchealth_esc/UpLoadServer.dll"
  31. job.ProviderID = "Esc"
  32. job.Mode = UL_MODE_BACKGROUND
  33. job.Mode = UL_MODE_FOREGROUND
  34. job.History = History
  35. job.Compressed = Compressed
  36. job.PersistToDisk = PersistToDisk
  37. 'job.UserName = "davide&"
  38. 'job.Password = "Test +"
  39. If Id <> "" Then
  40. job.JobID = ID
  41. End If
  42. wscript.echo job.JobID