Checking existence of directory

In the Delphi programming, to check the existence of the folder can use the function DirectoryExist(const Directory: string) : Boolean

procedure TF_CekDirektori.Button1Click(Sender: TObject);
begin
  if DirectoryExists('c:coba')=true then
   showmessage('Direktory c:\coba exist') else
   showmessage('Direktory c:\coba not exist');
end;

No comments:

Post a Comment