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
************
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
************