Hi, everybody.
I need to run a sequence of programs (DOS batch) form a VB application. The problem is that I need to launch these bat files in fixed sequence, whereas the VB SHELL function doesen't wait for a program to be finished before launching the next one.
So if I write something like:
for i=1 to NumberOfBat
Shell Filename(i).bat
next
the filename(3).bat will be launched before the filename(2).bat is finished, and this gives me problems.
Does anyone how I can check that a program is finished?
Can I use the SHELL function or have I to use a different statement (if so, what statement?)
Thank you in advance to anyone who can give me some advice.
G'day
I need to run a sequence of programs (DOS batch) form a VB application. The problem is that I need to launch these bat files in fixed sequence, whereas the VB SHELL function doesen't wait for a program to be finished before launching the next one.
So if I write something like:
for i=1 to NumberOfBat
Shell Filename(i).bat
next
the filename(3).bat will be launched before the filename(2).bat is finished, and this gives me problems.
Does anyone how I can check that a program is finished?
Can I use the SHELL function or have I to use a different statement (if so, what statement?)
Thank you in advance to anyone who can give me some advice.
G'day