Move A Directory To The Recycle Bin

A Delphi function that will move a directory to the recycle bin.

Using RecycleDir:

Parameters:

Dir: A string value specifying the name of the directory to be moved to the recycle bin.

Return Value:

The function will return the Boolean value True if successful.

If the function fails, it will return the Boolean value False.

Example:

 

Move A File To The Recycle Bin

A Delphi function that will move the specified file to the recycle bin.

Using RecycleFile

Parameters:

FileName: A String value specifying the name of the file to be moved to the recycle bin.

Return Value:

The function will return the Boolean value True if successful.

If the function fails, it will return the Boolean value False.

Example: