cmd-recycle: Delete files from Windows command line
Download links
I wrote another tool to do just this a while ago, but that one stopped working since I migrated to Windows 7 x64. Microsoft said the SHFileOpearation interface (which the old tool used) had been replaced by the IFileOperation interface. So I figured I would dig up my rusty C# again to update it.
Damn, I can’t believe it took a couple of hours, but the result worked amazingly. This one also supports wildcards:
1 | recycle file1 file2 supports-wildcards\*.tmp |
I’ve gone the extra mile and set up a proper repository this time around on GitHub. Probably some Windows gurus will mock me left and right with some obscure one-liners or something, lol.