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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initiate bat file or wsh script in VBA

Status
Not open for further replies.

LaCour

MIS
Jul 15, 2004
53
0
0
US
Is it possible to inisiate a bat file or wsh script in VBA?

Thanks
Blair
 
Yes. See the Shell function in the Help file.

dummy = Shell("C:\Batch\filename.bat param1 param2")
dummy = Shell("wscript C:\Scripts\myscript.vbs //Nologo")

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top