Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem Copy workflow and the launcher
- set str1=%~dp0
- set str2=%str1%
- cd %str1%
- set almUserName=
- set almPassword=
- set almDomain=
- set almProject=
- set framework="C:Automation"
- set machine=prduft01
- set masterScript="\prduft01c$Usersuftuser01DesktopLauncher.vbs"
- set file="c:WindowsSysWOW64wscript.exe %masterScript% %almUserName% %almPassword% %almDomain% %almProject% %framework%
- set user=prduft01remoteuser
- set userPwd=remotemachinepassword
- net use Z: \%machine%C$ %userPwd% /user:%user%
- echo F | xcopy /y /k /f /v Workflow.xlsx \prduft01c$Usersuftuser01DesktopWorkflow.xlsx
- echo F | xcopy /y /k /f /v Launcher.vbs \prduft01c$Usersuftuser01DesktopLauncher.vbs
- schtasks /Create /F /S %machine% /U %user% /P %userPwd% /SC ONCE /ST 00:00:00 /TN UFT /TR %file%
- schtasks /Run /S %machine% /U %user% /P %userPwd% /TN UFT
- pause
Add Comment
Please, Sign In to add comment