Forum Discussion
martin_facchini
Contributor
i had the same problem using the example from Allan (The system cannot find the file specified), and tried the suggested change from jsmunroe, which worked, but I’m relatively new to coding and don't understand why my original path in mypath didn't work, and why the one from jsmunroe did.
Therefore, why does inserting additional "\"'s on either side of the path correct the problem?
var obj = Sys.OleObject("WScript.Shell");
var mypath = "C:\\PixelPOS\\TestComplete\\Default INI and Policies\\XMLPolicies Reset.bat"
obj.Run("\"" + mypath + "\"");
srini_molleti
8 years agoNew Contributor
Hi Martin,
Could you please help me similar command with command line arguments. I mean of I need to pass arguments while running the bat script.
Thanks for your help in advance.
Related Content
Recent Discussions
- 2 hours agoSvetaG