Delete Directory

In the Delphi programming, to delete the folder / directory can use the function RemoveDir(const Dir: string) : Boolean

procedure TF_HapusDirektori.Button1Click(Sender: TObject);
begin
 if RemoveDir('c:\coba')=true then
  showmessage('Managed to create a directory --> c:\coba') else
  showmessage('Failed to create a directory --> c:\coba');
end;



No comments:

Post a Comment