Passing Variables to the Command Line
Sys.OleObject("Wscript.Shell").Run('cmd /k(cd c:\\"Program Files (x86)\"\\TheFolder\\program client & program SETWORKINGFOLDER "$//Test Complete Scripts" "C:\\dave" -host 220.127.116.11 -user "Johndoe" -password "mypassword" -repository "RepoFolder" & program GET -host 192.168.254.226 -user "Johndoe" -password "mypassword" -repository "RepoFolder" "$//Test Complete Scripts" -merge overwrite -setfiletime current)');
for the variables I've tried this:
var userName = '"Johndoe"';
any help is appreciated! thanks!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)