How do you tell when a program closed? 
Author Message
 How do you tell when a program closed?

I'm trying to write a program in VB4 that can execute another program that
the user designates, and then after they close that program I was going to
run the rest of my program.  I was going to use shell to execute the other
program, but I'm not sure how to tell when that program has been closed.
Do you use the task ID that the shell command gives you?  And if so, what
function do you use?

Harvey Jordan



Fri, 29 Oct 1999 03:00:00 GMT  
 How do you tell when a program closed?


Quote:
>I'm trying to write a program in VB4 that can execute another program that
>the user designates, and then after they close that program I was going to
>run the rest of my program.  I was going to use shell to execute the other
>program, but I'm not sure how to tell when that program has been closed.
>Do you use the task ID that the shell command gives you?  And if so, what
>function do you use?

what version of vb?

Rainer

---------------------------



Sat, 30 Oct 1999 03:00:00 GMT  
 How do you tell when a program closed?


1997 20:32:53 GMT):

Quote:
>I was going to use shell to execute the other
>program, but I'm not sure how to tell when that program has been closed.

Answers differ for 16bit (easy) and 32bit
(complex)-solution.

Take a look at the MS-KB:

- How to Determine When a Shelled 32-bit Process Has
Terminated
Article ID: Q129796

and for 16bit:

- How to Determine When a Shelled Process Has Terminated
Article ID: Q96844

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



Sat, 30 Oct 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. tell another program i am done

2. Please tell me what I am doing wrong - DAO parameter Append Query :(

3. How to tell when all a form and all it's elements are done loading

4. Will somebody tell me what I am doing wrong with this ListView Control

5. How to tell if a program was started by another program

6. How to tell if a program was started by another program

7. How to close VB 4.0 16 bit program when a Crystal report Window is closed

8. How do I tell if the Recordset closed?

9. Closing the App - Can it be done?

10. Going crazy, says object is closed yet I never told it to

11. How to tell when Crystal closes?

12. How To? Closing Shelled DOS app when done

 

 
Powered by phpBB® Forum Software