Board index » delphi » Help: Execute an external program

Help: Execute an external program

I am writing a rar/arj/jar - shell program in Delphi 2.0

How can I execute an external program (like rar.exe) with parameters and
long filenames (if rar.exe is a 32-bit app).

I have tried with some routines but they don't work!!

BIG thanks for YOUR help!!

/ Mattias

 

Re:Help: Execute an external program


Mattias,
   Take a  look at the CreateProcess API function...
                                Good Luck!
                                        Dave

Mattias Dahlberg <fake.m...@usa.net> wrote in article
<887478394.945273@nn1>...

Quote
> I am writing a rar/arj/jar - shell program in Delphi 2.0

> How can I execute an external program (like rar.exe) with parameters and
> long filenames (if rar.exe is a 32-bit app).

> I have tried with some routines but they don't work!!

> BIG thanks for YOUR help!!

> / Mattias

Re:Help: Execute an external program


Quote
Mattias Dahlberg wrote:

> I am writing a rar/arj/jar - shell program in Delphi 2.0

> How can I execute an external program (like rar.exe) with parameters and
> long filenames (if rar.exe is a 32-bit app).

> I have tried with some routines but they don't work!!

        Have you tried WinExec, ShellExecute, etc? (You're not
supposed to use WinExec anymore but it still works, and it seems
like the simplest alternative.)

--
David Ullrich

sig.txt not found

Other Threads