Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a .bat file from .vbs 1

Status
Not open for further replies.

DummyForAccess

Technical User
Aug 7, 2002
38
0
0
US
I have a simple script that I used a utility to write that ftps some files for me. I just want one more step added to the script, that will run a .bat file. I tried typing in run f:\htp\bkup_move.bat but that doesn't work. What syntax will run this .bat file?
 
Try this:

[tt]CreateObject("WScript.Shell").Run "f:\htp\bkup_move.bat"[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top