Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if an application has closed through API calls...

Status
Not open for further replies.

mzadi

Programmer
Mar 20, 2001
8
0
0
US
I have an application that can open up other applications and execute selected scripts by the user. I need an API call to find out if the application is still running. (The scripts close the application after execution.)

I would like to be able to add a sequential list of files to be executed and know that they will all wait their turn in line. If anyone could point me to the proper way to do this through API calls, I would appreciate it.

Thanks!
Bryan
 
If you use the Shell command to execute the scripts, you could use the ShellAndWait function. There is a FAQ on this in the VB 5&6 forum. There is also a FAQ that shows how you can get a list of all processes running. You could use this to find the process by name.
 
Here are pointers to the FAQs:
faq222-428 - ShellAndWait
faq222-61 - List Processes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top