Guest User

Untitled

a guest
Jan 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. rem Copy workflow and the launcher
  2. set str1=%~dp0
  3. set str2=%str1%
  4. cd %str1%
  5.  
  6. set almUserName=
  7. set almPassword=
  8. set almDomain=
  9. set almProject=
  10.  
  11. set framework="C:Automation"
  12. set machine=prduft01
  13. set masterScript="\prduft01c$Usersuftuser01DesktopLauncher.vbs"
  14. set file="c:WindowsSysWOW64wscript.exe %masterScript% %almUserName% %almPassword% %almDomain% %almProject% %framework%
  15. set user=prduft01remoteuser
  16. set userPwd=remotemachinepassword
  17.  
  18. net use Z: \%machine%C$ %userPwd% /user:%user%
  19. echo F | xcopy /y /k /f /v Workflow.xlsx \prduft01c$Usersuftuser01DesktopWorkflow.xlsx
  20. echo F | xcopy /y /k /f /v Launcher.vbs \prduft01c$Usersuftuser01DesktopLauncher.vbs
  21.  
  22.  
  23. schtasks /Create /F /S %machine% /U %user% /P %userPwd% /SC ONCE /ST 00:00:00 /TN UFT /TR %file%
  24. schtasks /Run /S %machine% /U %user% /P %userPwd% /TN UFT
  25. pause
Add Comment
Please, Sign In to add comment