ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Command to empty recycle bin?

(1/1)

sri:
I want to create a button for emptying recycle bin and put it at the top of my screen using PowerPro. I tried


--- ---cmd.exe del \C C:\RECYCLER\?*.*
but that didn't delete the contents.

Any ideas? (w/o using another program like http://www.nirsoft.net/utils/nircmd.html or http://www.appdeploy.com/downloads/detail.asp?id=298, if possible)

lanux128:
this AHK command could do the trick: FileRecycleEmpty.

Empties the recycle bin.FileRecycleEmpty [, DriveLetter]

jacidbazz:
PowerPro has a built in command for this. Under the *Exec menu is "EmptyRecycleBin". From the help...

Empties the recycle bin. Use checkboxes to control confirmation and whether sound is played and animation shown. Unavailable on early Win95 versions unless IE4 or later has been installed.

sri:
Thanks lanux and jacid.

PhilB66:
Here's a .js script to do that:

shl = new ActiveXObject("Shell.Application");
bin = shl.NameSpace(10);
bin.Self.InvokeVerb("Empty Recycle &Bin");

Also, Recycle Bin in Quick Launch might be a useful tweak for some ... ???

Navigation

[0] Message Index

Go to full version