Launching a DOS program 
Author Message
 Launching a DOS program

I use the "shell" command to launch a scientific DOS program. This one
creates different files, and I have to use its in the same sub when my
program is finished. The problem is that the sub and the program continue to
run in the same time so I can't exploit my files in the sub. So, how can I
make the sub waiting for my program results ?
Actually I use error management with a loop around an "open" command but it
strongly decreases my program speed...


Fri, 02 Apr 2004 15:40:37 GMT  
 Launching a DOS program
Maybe use a timer instead of the loop? Then just check for the file every 5
seconds or whatever time increment works best.


Quote:
> I use the "shell" command to launch a scientific DOS program. This one
> creates different files, and I have to use its in the same sub when my
> program is finished. The problem is that the sub and the program continue
to
> run in the same time so I can't exploit my files in the sub. So, how can I
> make the sub waiting for my program results ?
> Actually I use error management with a loop around an "open" command but
it
> strongly decreases my program speed...



Wed, 07 Apr 2004 04:56:05 GMT  
 Launching a DOS program
The MSDN has an articles that describe how to launch a program using Shell
and then wait for it to complete.
Search the MSDN (http://msdn.microsoft.com/vbasic/)  looking for articles:
Q171127 or Q212547 for VBA
Q96844 or Q129796 for VB 16/32 bit


Quote:
> I use the "shell" command to launch a scientific DOS program. This one
> creates different files, and I have to use its in the same sub when my
> program is finished. The problem is that the sub and the program continue
to
> run in the same time so I can't exploit my files in the sub. So, how can I
> make the sub waiting for my program results ?
> Actually I use error management with a loop around an "open" command but
it
> strongly decreases my program speed...



Wed, 07 Apr 2004 15:09:02 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Can I Launch a DOS program from a VB Program?

2. Launching Windows Program from DOS Program

3. does anyone know how to directly launch from DOS program to internet web page under windows ?

4. Launching DOS programs from VB

5. Launching MS-DOS from with in a Visual Basic Program

6. Having a BASIC program launch another program

7. How to launch a VB program off the back of a non VB program

8. Registry read Failure when program launched by AT scheduling program

9. VB Launching a DOS App with pipes

10. VB6 program becomes a DOS program when compiling

11. Launching DOS prog from VB

12. Launch a DOS app from VB?

 

 
Powered by phpBB® Forum Software