Given a folder, how can I tell that it is a recycle bin? I\'ve found an answer for C++ but not for C#.
My first idea was to check for FileAttributes.System (which wo
Microsoft's Windows API Code Pack contains this functionality.
To get the folder of the Recycle Bin, use
Microsoft.WindowsAPICodePack.Shell.KnownFolderHelper.FromPath("::{645FF040-5081-101B-9F08-00AA002F954E}");
I've no idea what that string means, but it was included in the docs as the reference to the Recycle Bin.
Hope this helps :)