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.

42 lines
942 B

  1. 'stop
  2. Set oArguments = wscript.Arguments
  3. If oArguments.length > 0 then
  4. Id = oArguments.Item(0)
  5. End If
  6. If oArguments.length > 1 then
  7. File = oArguments.Item(1)
  8. End If
  9. History = 2
  10. Compressed = false
  11. PersistToDisk = true
  12. Mode = 1 ' Foreground
  13. Set fso = CreateObject("Scripting.FileSystemObject")
  14. File = fso.GetAbsolutePathName( File )
  15. Set obj = CreateObject( "UploadManager.MPCUpload" )
  16. Set job = obj.CreateJob()
  17. job.Sig = "{2B12E858-F61B-11d2-938E-00C04F72DAF7}"
  18. job.Server = "http://dmassare2/pchealth/uploadserver.dll"
  19. job.JobID = ID
  20. job.ProviderID = "Esc"
  21. job.History = History
  22. job.Compressed = Compressed
  23. job.Mode = Mode
  24. job.PersistToDisk = PersistToDisk
  25. job.UserName = "testuser01"
  26. job.Password = "password"
  27. job.GetDataFromFile File
  28. job.ActivateSync
  29. wscript.echo job.CreationTime
  30. wscript.echo job.CompleteTime