Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function RemoveDir(const DirFullName: string): boolean;
Deletes an empty folder.
Returns True if folder was removed, False if not. Note: the directory must be empty before it can be successfully deleted using RemoveDir.
//the following example will
//rename the application's file name.
var AFolder : string;
AFolder := 'c:\Temp';
if not RemoveDir(AFolder) then begin
ShowMessage('Could not delete Temp folder');
end;
|
Delete files with the ability to UNDO
Here's how to d elete a file (or an entire folder with subfolders) with the ability to undo by sending the file to the "Recycle Bin."
DeleteFile
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|