
to execute a BAT file from within a VBS file?
Quote:
> Hello,
> I have a .VBS file which runs a couple of tasks. At the end of it, I
> would like to call a .BAT file to run. How do I write that in the
> .VBS file?
> Any help is appreciated. Thanks.
See the Windows Script Host documentation for the Run method. For
example ...
CreateObject("Wscript.Shell).Run "%comspec% /c your.bat", 0, True
The example will run the procedure in a hidden window and wait for it to
complete executing before it proceeds with the rest of the script. See
the documentation for other options ...
Complete set of documentation available for download:
http://msdn.microsoft.com/scripting/windowshost/wshdoc.exe
Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/