VB script want to run .bat file from VB
Posted
by yael
on Stack Overflow
See other posts from Stack Overflow
or by yael
Published on 2010-06-07T08:01:14Z
Indexed on
2010/06/07
8:22 UTC
Read the original article
Hit count: 296
vbscript
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\wizard>go.bat
© Stack Overflow or respective owner