
Running DOS BAT file from VBS file
Try "%comspec% /c c:\my.bat"
Of course, batch files are as doomed as non-dhtml browsers, in win 2K.
--
mvp Mark L. Ferguson Please reply in newsgroup
marfers notes for OE 5 > (16K) http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
Quote:
> Hello Everyone,
> I am tryng to run dos commands such as execute a batch file from a vbs
> scripting host file.
> I can execute windows applications with the follow code:
> Set WshShell = Wscript.CreateObject("Wscript.Shell")
> WshShell.Run ("calc")
> but this will not run dos command such as running a BAT file.
> Could someone tell me the best way to execute dos commands from with a VBS
> file.
> Thanks,
> Paul