Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. if file exists \\192.168.1.120\USMTScript\USMTCentralRepository\<split array>\USMT\USMT.MIG THEN
  2. set variable of strRemoteFile = \\<destination from array>\C$\USMTLocalLoadstate.vbs
  3. copy file c:/USMTScript/USMTLocalLoadstate.vbs, <varialbe strRemoteFile>
  4. If the file does not exist
  5. sleep 6000,
  6. msgbox "Unable to find the USMT MIG file for <soource computer>
  7. End If statement
  8.  
  9. If fileexists <variable strRemoteFile>
  10. run Shell command PSEXEC
  11. If it does not
  12. Sleep 6000
  13. msgbox "Check <destination computer> is online
  14. end if
  15.  
  16. end
  17.  
  18. <!-- IF YOU NESTED THE IF's IT WOULD LOOK LIKE THIS >
  19.  
  20. if file exists \\192.168.1.120\USMTScript\USMTCentralRepository\<split array>\USMT\USMT.MIG THEN
  21. set variable of strRemoteFile = \\<destination from array>\C$\USMTLocalLoadstate.vbs
  22. copy file c:/USMTScript/USMTLocalLoadstate.vbs, <varialbe strRemoteFile>
  23. If fileexists <variable strRemoteFile>
  24. run Shell command PSEXEC
  25. If it does not
  26. Sleep 6000
  27. msgbox "Check <destination computer> is online
  28. end if
  29. If the file does not exist
  30. sleep 6000,
  31. msgbox "Unable to find the USMT MIG file for <soource computer>
  32. End If statement
  33.  
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement