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: