Solved

Waiting for an EXE to close

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 174
Internet Explorer View Settings Question 15 107
TEMBEDDEDWB how can i change its user agent ? 8 50
RESTRequest Parameter 4 15
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

20 Experts available now in Live!

Get 1:1 Help Now