Solved

Waiting for an EXE to close

Posted on 2003-12-08
3
205 Views
Last Modified: 2010-04-05
Hi,

I have an application which fires off an external executable using the ShellExecute function. In my program I need to start some processing after the executable has finished running, how do I find out when the executable has finished?

0
Comment
Question by:petelazell
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 200 total points
ID: 9895785
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9895787
use createProcess instead of shellexecute

sample follows

meikl ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9895806
sample already in the link from f68 above
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now