Solved

Waiting for an EXE to close

Posted on 2003-12-08
3
208 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert a string into a TDateTime 5 72
Multiple image collision 13 88
How to define IfThen functions in one common unit? 4 64
Convert MS Word document to a PDF file 9 115
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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