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

Wait for multiple spawned applications

Status
Not open for further replies.

rudejohn

IS-IT--Management
Jul 11, 2003
130
US
I have an application (VB exe) that spawns a few different other applications, both exe and vbs. Example code:

returnValue = Shell("myfile.exe locationParameter")
.
.
//other important code

The problem is, I do not want to run "other important code" until the myfile.exe has finished what it is doing. Furthermore, myfile.exe spawns ANOTHER vbs that does some its own processing. I need to wait until EVERYTHING else is complete before continuing. I've looked into the Timer objects and Sleep, but all of these seem to assume you know how long you're waiting. These other files could take anywhere between 5 minutes and a couple of hours... so how can I tell my application when to resume processing the code?

Thanks in advance,

RJ

I have referenced thread222-901069 but haven't quite found the answer(s) to my question yet.

************
RudeJohn
************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top