Board index » delphi » Executing an external program

Executing an external program

Does anyone know how to execute an external program in Delphi 4 Standard? I
looked for a solution in the help and online documentation and have found
none. If you have any idea, please e-mail me.

--
Marcin Jastrzebski
dar...@megsinet.net
http://www.megsinet.net/darvin

 

Re:Executing an external program


  You need to use ShellExecute or CreateProcess...  ---  DO NOT use WinExec
if someone suggests it (it's dead in Win2000 and up...)

  If you need examples of ShellExecute (which is incredibly easy) or
CreateProcess (which isn't):  E-mail me, and I'll give a sample....

--
Jason Wallace
SL Software
Dark...@SLSoftware.reno.nv.us
--
"We are Microsoft.  Resistance is Futile.  You will be assimilated.
--

Quote
Marcin Jastrzebski wrote in message ...
>Does anyone know how to execute an external program in Delphi 4 Standard? I
>looked for a solution in the help and online documentation and have found
>none. If you have any idea, please e-mail me.

>--
>Marcin Jastrzebski
>dar...@megsinet.net
>http://www.megsinet.net/darvin

Re:Executing an external program


Marcin Jastrzebski heeft geschreven in bericht ...

Quote
>Does anyone know how to execute an external program in Delphi 4 Standard? I
>looked for a solution in the help and online documentation and have found
>none. If you have any idea, please e-mail me.

>--
>Marcin Jastrzebski
>dar...@megsinet.net
>http://www.megsinet.net/darvin

Marcin,

Try  the FileExecute(<filename> : string) - function.
Perhaps you need to add the unit FMXUtils in your uses clause.
Otherwise ShellExecute wil do it (see the help-file).

Hope it helps you,
Alfred.

Re:Executing an external program


Hello Marcin,
I have some examples of execute an external program in Delphi,
on my web site. The url is
http://ssapcs.interspeed.net/index.html
Also lots of Delphi code.
Go to the 'Delphi Tips and Code ' web
page.

Hope this helps!

--  All the best from James Sandbrook.
****************************************************************
http://ssapcs.interspeed.net/index.html
Charlie Calvert talks about Delphi's future
HTML-New Zealand Web Site Links-Family-Delphi-Pascal-
School Projects-Computer Terms-Interviews with Dr Bob
and Marco Cant - And our Delphi e-group.
****************************************************************

Quote
Marcin Jastrzebski wrote:
> Does anyone know how to execute an external program in Delphi 4 Standard? I
> looked for a solution in the help and online documentation and have found
> none. If you have any idea, please e-mail me.

> --
> Marcin Jastrzebski
> dar...@megsinet.net
> http://www.megsinet.net/darvin

Other Threads