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
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Calling Shellexec
Started by kvarnerexpress, Aug 05 2005 07:54 PM
2 replies to this topic
#3
Posted 11 April 2006 - 07:09 AM
kvarnerexpress, on Aug 5 2005, 07:54 PM, said:
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
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...
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














