PutInRecycleBin()

Summary

Puts a file or folder in the recycle bin.

Syntax

PutInRecycleBin(string file_or_folder)

Argument Contents
file_or_folder The complete path name, with drive, path, file name and extension

Notes

Error Codes

Error Type Meaning
Error file_or_folder is null or its length is greater than 240 or Windows returned an error
NotFound The file does not exist

See Also

Function Summary
DeleteFile() Deletes a file
RemoveDirectory() Removes a folder (directory)