Help: Wait for shelled process to end 
Author Message
 Help: Wait for shelled process to end

I followed the intruction from microsoft's knowledge base article:

   How a 32-bit App can determine when a shelled process ends.

It talks about using the API Calls CreateProcessA() and
WaitForSingleObject()

It works fine if I use the next code to call it (see sample knowledge
base):

  ExecCmd "notepad.exe"
  MsgBox "Process Finished"

but with the next code it won't work

  me.windowstate = 1 'minimize calling application
  ExecCmd "notepad"
  me.windowstate = 2 'maximize calling application

What I want is that the application that shells to another application
remains minimized until the shelled process ends, without the need of
putting a message box in between.

Any help would be appreciated,

Thalwin



Sat, 14 Aug 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Why wait the end of a Shell process ?

2. Help with Determining Shell Process Ends

3. Help: How a 32-Bit app can determine when a shelled process ends

4. Wait for the end of a process

5. HOWTO start a process and wait for its end

6. Wait for the end of a process

7. Wait for Process to end?

8. ShelllExecute then wait for process to end

9. Forcing Access to wait the end of an application started by SHELL

10. how to wait for shell to end

11. executing via Shell and waiting for the end

12. SHELL and wait until the end of the program

 

 
Powered by phpBB® Forum Software