Hi,
I have a requirement where I need to use a variable instead of a full path when I call a bat file.
Example:
var path = "C://xyz/..."
Sys.OleObject("WScript.Shell").Run("cmd /c \"" path + myfile.bat\"");
The above line doesn't seem to work with 'path' variable but works fine when I add the full path.
Can anyone help with this please.
Thanks
I have a requirement where I need to use a variable instead of a full path when I call a bat file.
Example:
var path = "C://xyz/..."
Sys.OleObject("WScript.Shell").Run("cmd /c \"" path + myfile.bat\"");
The above line doesn't seem to work with 'path' variable but works fine when I add the full path.
Can anyone help with this please.
Thanks
My Computer
System One
-
- Operating System
- Windows