yip...thats pretty simple.
you can retreive it via the Paramstr's .
I.e :-

in the "FormCreate" event, do the following :-

procedure TForm1.FormCreate(Sender: TObject);
var
 myEXEPath:string;
begin
 myEXEPath:=ExtractFilePath(paramstr(0));
 showmessage(myEXEPath);
end;



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Leo Ramakers
> Sent: Thursday, January 21, 1999 22:01
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]:Determining RunTime EXE directory
>
>
> I have a TImage component which I need to be able to clear under
> program control. I
> figure on loading a graphics file into it but I dont know how to
> locate the file at
> runtime, except that it is in the same directory as the  runtime EXE file.
>
> Can anyone point out how to get the runtime directory.
>
> Thanks
>
> Leo Ramakers
>
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to