VB script want to run .bat file from VB
- by yael
hi
I am try to run the go.bat from VB but when I run the script I get: :cant find specific file
but from the cmd window the file go.bat exsit what the problem?
Dim MyShell
Dim shell_cmd
shell_cmd = "C:\Program Files\dir1\dir2\wizard\go.bat"
set MyShell = CreateObject("WScript.Shell")
MyShell.Run shell_cmd, 1, 1
from cmd window
C:\Program Files\dir1\dir2\wizardgo.bat