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 188.8.131.52 -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!