Function Reference

FileRecycle

Sends a file or directory to the recycle bin.

FileRecycle ( "source" )

 

Parameters

source The source path of the file(s) or directory to Recycle. Wildcards are supported.

 

Return Value

Success: Returns 1.
Failure: Returns 0 (typically meaning the file is use or does not exist).

 

Remarks

See FileFindFirstFile for a discussion of wildcards.
To remove a directory, simply give the path without a trailing backslash.

 

Related

FileDelete, FileRecycleEmpty

 

Example


FileRecycle("C:\*.tmp")