How 2 determine DOS program has finished? 
Author Message
 How 2 determine DOS program has finished?

How can I get VB3 to find out if a DOS program has finished it run, so that
the VB program can continue.

The situation is a backup with pkzip, I need to know if pkzip has finished
before I re-open the database.



Fri, 03 Dec 1999 03:00:00 GMT  
 How 2 determine DOS program has finished?


GMT):

Quote:
>How can I get VB3 to find out if a DOS program has finished it run, so that
>the VB program can continue.

>The situation is a backup with pkzip, I need to know if pkzip has finished
>before I re-open the database.

Shell it with "COMMAND /C PKZIP" (makes the DOS-box close
after exe's termination) and use GetModuleUsage to see
whether the DOS-Box is still active.

Mathias Schiffer, Germany
--
VB-FAQ: http://home.sol.no/jansh/vb/default.htm
NG-tips: http://www.rat.de/metty/vbnews



Sat, 04 Dec 1999 03:00:00 GMT  
 How 2 determine DOS program has finished?

http://home1.swipnet.se/~w-13055/codepot.htm

Peter Larsson



Sat, 04 Dec 1999 03:00:00 GMT  
 How 2 determine DOS program has finished?

Quote:

>How can I get VB3 to find out if a DOS program has finished it run, so that
>the VB program can continue.

Make a batchfile: DOS_prog.bat

Echo Hallo > wait.tsk
Call <Your DOS program>
Del wait.tsk

Call the batchfile with the shell command.
Check in VB if the file wait.tsk is still there. If not the DOS
program has finished.

Andreas

PS: the simplest way is most the best.

b
b aa   Dipl-Ing. Andreas Bachmeier
b   a  Ing.-Bro fr Softwaretechnik
 bb a  Berlin / Germany



Sat, 04 Dec 1999 03:00:00 GMT  
 How 2 determine DOS program has finished?

Look at this article from Microsoft
16bits
http://www.microsoft.com/kb/articles/q96/8/44.htm
or for 32 bits at
http://www.microsoft.com/kb/articles/q129/7/96.htm
--
[Henri at]



: How can I get VB3 to find out if a DOS program has finished it run, so
that
: the VB program can continue.
:
: The situation is a backup with pkzip, I need to know if pkzip has
finished
: before I re-open the database.
:
:
:



Mon, 06 Dec 1999 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Determine whether a external program (process) has finished execution successfully

2. determine if program started with shell finished

3. How to determine if a DOS shelled program has finished?

4. How to determine if a DOS program has finished executing?!?

5. Having a BASIC program launch another program

6. determine when query finish executing

7. How to determine when query finishes

8. How to determine when doc is finished printing

9. detect when DOS print action is finished

10. Determine when a Sound Has Finished - HELPPP!!!!!

11. Waitn til DOS-command finishes

12. HELP: How-to determine if 32-bit shelled app is finished

 

 
Powered by phpBB® Forum Software