New
#1
How to use a variable in a path to execute a .bat file
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