uses FileCtrl;

procedure TForm1.Button1Click(Sender: TObject);
begin
  if DirectoryExists('c:\windows') then
    ShowMessage('Path exists!');
end;