uses SysUtils,Forms; var S :String; begin S := ExtractFilePath(Application.ExeName); end; -----Original Message----- From: Leo Ramakers <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Thursday, 21 January 1999 22:11 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