Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if file exists \\192.168.1.120\USMTScript\USMTCentralRepository\<split array>\USMT\USMT.MIG THEN
- set variable of strRemoteFile = \\<destination from array>\C$\USMTLocalLoadstate.vbs
- copy file c:/USMTScript/USMTLocalLoadstate.vbs, <varialbe strRemoteFile>
- If the file does not exist
- sleep 6000,
- msgbox "Unable to find the USMT MIG file for <soource computer>
- End If statement
- If fileexists <variable strRemoteFile>
- run Shell command PSEXEC
- If it does not
- Sleep 6000
- msgbox "Check <destination computer> is online
- end if
- end
- <!-- IF YOU NESTED THE IF's IT WOULD LOOK LIKE THIS >
- if file exists \\192.168.1.120\USMTScript\USMTCentralRepository\<split array>\USMT\USMT.MIG THEN
- set variable of strRemoteFile = \\<destination from array>\C$\USMTLocalLoadstate.vbs
- copy file c:/USMTScript/USMTLocalLoadstate.vbs, <varialbe strRemoteFile>
- If fileexists <variable strRemoteFile>
- run Shell command PSEXEC
- If it does not
- Sleep 6000
- msgbox "Check <destination computer> is online
- end if
- If the file does not exist
- sleep 6000,
- msgbox "Unable to find the USMT MIG file for <soource computer>
- End If statement
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement