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;

Leave a Reply

Please copy the string 6SiIdF to the field below: