Board index » delphi » How to execute an external program

How to execute an external program

Dear all,

How to execute (run) an external program?
Just like the command (statement) 'run' of Visual Foxpro

Thanks a lot

Kenneth

Sent via Deja.com http://www.deja.com/
Before you buy.

 

Re:How to execute an external program


There are a few ways of accomplishing this in Delphi. The prefered method is
CreateProcess, although personally I favor ShellExecute because it is a lot
less work... one function call without any associated structures or
callbacks. There is also WinExec, but you have to keep in mind that is
mostly used now to maintain backward compatibilty and may not be around in
the next release of Delphi.

Good luck!!

--
David G. Parsons
(Dr. Delphi)
Inprise Certified Delphi 4 Client/Server Developer
Tekmetrics Certified Delphi Programmer
Tekmetrics Certified Visual Basic 5 Programmer
URL: http://www.DrDelphi.com
Email: DrDel...@DrDelphi.com
Voicemail/Fax: (603) 947-8207

Quote
<kenneth_at_d...@my-deja.com> wrote in message

news:86u4mn$hvm$1@nnrp1.deja.com...
Quote
> Dear all,

> How to execute (run) an external program?
> Just like the command (statement) 'run' of Visual Foxpro

> Thanks a lot

> Kenneth

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Other Threads