Check If a Directory Exists

How to check if a directory exists?

procedure TForm1.Button1Click(Sender:TObject);
begin 
if DirectoryExists(‘C:\Data’) then
begin 
ShowMessage(‘Directory already exists’);
end;
end;

Incoming search terms:

  • delphi directoryexists
  • delphi directory exists
  • check directory delphi
  • directory exists delphi
  • is directory accessible delphi
  • directoryexists delphi 7
  • directoryexists delphi
  • directory existe delphi 7
  • directories check in delphi
  • dir exists delphi 7
This entry was posted in Files. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string U5V4em to the field below: