Thanks to everyone for the help. Between the ShellExecute and TLMDStarter I
now have a chose of which one to use and
they both work the way we want
I actually can across the LMD components the other day. The came with the
Delphi 5 companion CD according to their site.
They have a set of over 100 free ones available to use, of which the
TLMDStarter is one, which look quite nice for putting different looks and
fancy functions to your app.
The address is http://www.lmd.de/eindex.htm for those interested
Thanks again
Eion McIntosh
PPCS Ltd
> -----Original Message-----
> From: Steve Aish [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, 4 July 2001 13:10
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Running an external program
>
> 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"
---------------------------------------------------------------------------
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"