Install | Source | Download | Changes | License | Contact

BinManager is shell context menu command for deleting old items from Windows recycle bin, as well as a scriptable component for managing the recycle bin. You can use either feature, or both.
This command enables you to empty all but the most recent items from your recycle bin. This is useful for several reasons:
BinManager requires version 4.71+ of Windows shell.dll. If you're running a fairly recent version of Windows and/or Internet Explorer, you'll be fine.
The following JScript for Windows Scripting Host demonstrates the component's usage.
var bin = new ActiveXObject("BinManager.RecycleBin");
// Report the contents of the recycle bin.
function Report(){
WScript.Echo("Recycle Bin Holds\n" + bin.NumItems
+ " items\n" + bin.Size + " bytes\n");
}
Report();
// Permanently delete items recycled more than two days ago.
// Note, the argument is full calendar days, so specifying
// zero would delete all items older than today.
bin.DeleteOldItems(2);
Report();
// Permanently delete all recycled items.
bin.Empty();
Report();
Note on Windows 2k Pro and XP Pro, you can use the Group Policy Editor to specify scripts to be run on logoff or shutdown. On XP Pro:
source.zip is a Microsoft Visual C++ .NET project with attributed ATL. There are no dependencies on the CLR or WTL.
March 21, 2003. Version 1.0.Enjoy.