The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function MoveToRecycleBin (Filemask: string): boolean;

The function MoveToRecycleBin moves all files which match der parameter FileMask into the recycle bin and returns the number of deleted files. The parameter FileMask may contain the usual wildcards ? and * in the filename and the extension but not in the path.

Hint: The function MoveToRecycleBin is based on a Windows API call which is reported to be buggy under certain versions of Windows NT. So be careful to apply this function under NT - it could simply delete the files instead of moving them to the recycle bin.

Last Update: 2012-Okt-20