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

.Wait for Shell program to finish 2

Status
Not open for further replies.

CooterBrown

IS-IT--Management
Aug 17, 2001
125
US
I am issuing this command in a VBA macro:
Shell ("C:\documents and settings\ssc\desktop\BKRSDDS\callCopyIMPF.bat")

How would I get the program to wait for this program to finish executing before proceeding.
Thanks,
Coot
 
Dim Sh As Object
Set Sh = CreateObject("WScript.Shell")
Sh.Run "cmd /C ""C:\documents and settings\ssc\desktop\BKRSDDS\callCopyIMPF.bat""", 1, True
Set Sh = Nothing



Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top