Jul 23, 2008

Calling Shellexec

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Assembler and Delphi

free web hosting

Calling Shellexec

kvarnerexpress
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

Reply

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

Reply

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

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. delphi shellexec - 6.10 hr back. (1)
  2. delphi shell exec - 19.49 hr back. (1)
  3. shellexec delphi - 51.56 hr back. (1)
  4. delphi shellexecex - 71.21 hr back. (1)
  5. shellexec - 19.88 hr back. (7)
Similar Topics

Keywords : calling shellexec


    Looking for calling, shellexec

Searching Video's for calling, shellexec
advertisement



Calling Shellexec



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE