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!