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!

Windows API Call... 2

Status
Not open for further replies.

vmehta

MIS
Aug 26, 2003
1
0
0
US
I need to have a button on a form initiate an executable using the "shell" command, then "wait" for the executable to complete, and then (and only then) begin some processing.

The executable is an external (non-access) program that updates some SQL tables, and i need to process these tables once the executable has completed the update process.

The SHELL command returns a Windows handler ID for the process that it initiates - can anyone help me with the API call that I would have to execute in a "do...while" loop to wait for the process to terminate?

Thanks!

Vinay
vmehta@vmsc.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top