d00_ape Posted September 7, 2004 Share Posted September 7, 2004 I?m successfully manage to run the zipprogram gzip.exe programmatically like this: ShellExecute( NULL, "open", "C:\\gzip.exe", strParam, "C:\\Program Files\\Ceco", NULL ) ) ) //Here I want to sleep?. Until the new process has ended. How do I after this call wait until gzip.exe has returned. (The file that gzip.exe creates do I want to rename.) Link to comment Share on other sites More sharing options...
0 smurfiness Posted September 7, 2004 Share Posted September 7, 2004 Use ShellExecuteEx, instead of ShellExecute. Then call WaitForSingleObject on the SHELLEXECUTEINFO object's hProcess variable after the call to ShellExecuteEx. Link to comment Share on other sites More sharing options...
Question
d00_ape
I?m successfully manage to run the zipprogram gzip.exe programmatically like this:
How do I after this call wait until gzip.exe has returned. (The file that gzip.exe creates do I want to rename.)
Link to comment
Share on other sites
1 answer to this question
Recommended Posts