Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Calling Shellexec
kvarnerexpress
post Aug 5 2005, 07:54 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



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
Go to the top of the page
 
+Quote Post
Inspiron
post Aug 6 2005, 10:03 AM
Post #2


Trap Grand Marshal Member
***********

Group: Members
Posts: 1,205
Joined: 25-March 05
Member No.: 4,883



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.
Go to the top of the page
 
+Quote Post
DeveloperX
post Apr 11 2006, 07:09 AM
Post #3


Advanced Member
*******

Group: Members
Posts: 130
Joined: 21-December 05
Member No.: 15,990



QUOTE(kvarnerexpress @ Aug 5 2005, 07:54 PM) *

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...

CODE

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...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Calling A Variable From A Dynamic List In A Sql Statement(2)
  2. Calling all University students...(15)
  3. Skype Enables Video Calling(8)
  4. Calling A False Variable...(6)
  5. Calling All Game Modders!(0)
  6. Runescape Cheats From Players(3)
  7. Free Long Distance Calling From Computer To Phone(4)
  8. Calling All Internet Marketing Newbies!(0)
  9. Calling All Css Experts (i Need Some Help)(5)
  10. Calling All Bf2142 Clans!(0)
  11. Image Calling Problem Solved(1)


 



- Lo-Fi Version Time is now: 20th July 2008 - 05:46 PM