I use the TLMDStarter component from LMD tools. (I forget where I got this
from.)

Using this you can set the command, directory, parameters etc.

If I want to run something from the same directory the app is running from I
use the 'application.exename' property and run it through a little function
I wrote which grabs all of this filename up until the last '\'.  This gives
me the app's path.

So you can feed the full path name to the component.

I think LMD Tools ships with Delphi 5.  If not I am sure it is on the web
somewhere...

Steve Aish


-----Original Message-----
From: Eion McIntosh (CHCH) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 July 2001 12:46
To: Multiple recipients of list delphi
Subject: [DUG]: Running an external program


Hi

We want to start an external program from within an Delphi app. The only way
we have found how to do it so far is via
WINEXEC but this we can get this to work properly is but physically putting
the full programs exe path in for it to start.
The file type under explorer indicates that the extension of the file we
wish to load is associated with the application i.e. PDF = acrobat reader.
Is there another way, or other command, to available to start this app
without having to have the full exe path in the program,
as the application may not be in the same location on every PC.

Eion McIntosh   
PPCS Ltd
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to