I have this code to run .exe using Windows scripting host. I am getting this error "The system cant find the file specified."
Is the code right? I am new to WSH. I have run the same exe before and the path is correct. arg1 is the argument that needs to be passed to test.exe. Please help. Thank you.
set shell = WScript.CreateObject("WScript.Shell")
quote = Chr(34)
pgm = "C:\test\bin\Debug\test.exe"
arg = "arg1"
shell.Run quote & pgm & " " & arg