kvarnerexpress 0 Report post Posted August 5, 2005 I am with problem - it would be great to call some external programm from Delphi, wait - till it executes and exits and only then continue work of my Delphi program, how can I do this. I tried ShellExec and ShellExecEx - however - it only calls program and exits - it would be great to registre some handler - which monitors when this called program exits?Any design ideas for such an problem could be very helpful, thanks in advanceKvarnerexpress Share this post Link to post Share on other sites
Inspiron 0 Report post Posted August 6, 2005 I don't know about Delphi and I came across the same problem with I was doing on Visual Basic.What I did was to call a DOS prompt, you may like to try it. Share this post Link to post Share on other sites
DeveloperX 0 Report post Posted April 11, 2006 I am with problem - it would be great to call some external programm from Delphi, wait - till it executes and exits and only then continue work of my Delphi program, how can I do this. I tried ShellExec and ShellExecEx - however - it only calls program and exits - it would be great to registre some handler - which monitors when this called program exits? Any design ideas for such an problem could be very helpful, thanks in advance Kvarnerexpress well... guyz... Shellapi.ShellExecute(application.Handle,'open',pchar('program path'),pchar('parameters'),'',1); Note:last parameter (1) gets window state! maximazed, minimized, normal,focused,unfocused and so on... Share this post Link to post Share on other sites