You can do a call using the Shell API (ShellExecute()) to open a file eg
pass in the file name "index.html" and it will open it with the application
defined for that file extension (or print) etc. I have used it once - worked
great. 
Myles.


-----Original Message-----
From: Eion McIntosh (CHCH) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 July 2001 12:46 p.m.
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