This is not working.
Set oShell = CreateObject("WScript.Shell")
oShell.Exec "test.bat"
Here is the modified command:
Set oShell = CreateObject("WScript.Shell")
oShell.Exec "call test.bat"
Thanks,
Greg Van Mullem|||That doesn't seem to work. The error is can't find specified file.|||
Try Run instead of Exec.
Set oShell = CreateObject("WScript.Shell")
oShell.Run "test.bat"
No comments:
Post a Comment