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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking Shell process

Status
Not open for further replies.

DerFarm

Programmer
Mar 10, 2003
25
I have a shell execute statement Shell("c:\,,,,,") and it returns a double, which is apparently the ID of the process.

How do I track the ID until it closes?

Alternatively, How can I determine that the process HAS closed?
 

Search this site for Shell and Wait, any date, all words.

Good Luck

 
Instead of Shell statement, you have to execute the program using CreateProcess function and have to watch its return handle using WaitForSingleObject function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top