View unanswered posts | View active topics It is currently September 18th, 2014, 3:40 pm



Reply to topic  [ 7 posts ] 
 A better way to empty the Recycle Bin 
Author Message

Developer

User avatar

Joined: April 19th, 2009, 11:02 pm
Posts: 10953
Location: Fairfax, VA
Post A better way to empty the Recycle Bin
November 28th, 2009, 3:34 pm
Thought I would pass along a tip on how I empty the windows Recycle Bin in Rainmeter. This has the advantage of not only emptying the bin, but giving your system a quick "tune up" while you do it.

1) Get CCleaner from http://www.ccleaner.com/
2) Install it (be careful that you uncheck the "install Yahoo Toolbar" near the end of the install)
3) Run CCleaner, and set it up to clean the things you want. I don't recommend having it clean all your browser's cookies by default, as then you will have to log into websites all the time.
4) In CCleaner under "Options / Advanced" check "Always save .ini file" so it will remember your settings.

5) Use code like this for your Recycle Bin in Rainmeter (you will need full and empty images in the same folder with the skin, and of course the X and Y settings will need to be changed for your setup)

[MeasureBin]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=COUNT
Drives=ALL
UpdateDivider=2

[MeterBinEmpty]
Meter=IMAGE
MeasureName=MeasureBin
X=57r
Y=1
W=41
H=41
ImageName="TrashEmpty.png"
Hidden=0
LeftMouseDownAction =!execute [::{645FF040-5081-101B-9F08-00AA002F954E}]

[MeterBinFull]
MeasureName=MeasureBin
Meter=IMAGE
X=0r
Y=1
W=41
H=41
ImageName="TrashFull.png"
Hidden=1
LeftMouseUpAction =!execute [::{645FF040-5081-101B-9F08-00AA002F954E}]
RightMouseUpAction =!execute ["C:\Program Files\CCleaner\CCleaner.exe" "/AUTO"]

[BinAction]
Measure=Calc
Formula=MeasureBin
IfAboveAction=!execute [!RainmeterHideMeter MeterBinEmpty][!RainmeterShowMeter MeterBinFull]
IfAboveValue=0
IfEqualAction=!execute [!RainmeterHideMeter MeterBinFull][!RainmeterShowMeter MeterBinEmpty]
IfEqualValue=0

Now when you right click the full bin, it will silently and almost instantly not only empty the bin, but clean up your temp folders, browser history, and all the other housekeeping that CCleaner does.

Profile

Administrator

User avatar

Joined: April 3rd, 2009, 4:29 pm
Posts: 1339
Location: Santa Fe, NM
Post Re: A better way to empty the Recycle Bin
November 28th, 2009, 3:49 pm
NNNNiiiiiiiiccccccceeeeeeeeeeeeee
:thumbsu: :thumbsu: :thumbsu: :thumbsu: :sthumbsu:

Profile WWW
User avatar

Joined: August 7th, 2009, 11:23 pm
Posts: 91
Post Re: A better way to empty the Recycle Bin
November 29th, 2009, 7:50 pm
Or you could simply call this little tool I just finished ;)
It empties the bin without notifying the user and closes itself after finishing the job. :D

Attachment:
File comment: Empties the bin without notifying the user.
EmptyBin.zip [53.78 KiB]
Downloaded 278 times

Profile WWW

Developer

User avatar

Joined: April 19th, 2009, 11:02 pm
Posts: 10953
Location: Fairfax, VA
Post Re: A better way to empty the Recycle Bin
November 29th, 2009, 9:14 pm
Samus Aran wrote:
Or you could simply call this little tool I just finished ;)
It empties the bin without notifying the user and closes itself after finishing the job. :D

Attachment:
EmptyBin.zip


Nice. However if that is all you need, there is a !bang for the built-in plugin that empties silently...

http://rainmeter.net/cms/Plugins-RecycleManager

Profile
User avatar

Joined: August 7th, 2009, 11:23 pm
Posts: 91
Post Re: A better way to empty the Recycle Bin
November 29th, 2009, 10:03 pm
I really should read the manual some day... -.-

Profile WWW

Rainmeter Sage

User avatar

Joined: July 19th, 2009, 5:59 am
Posts: 661
Location: Montreal, QC, Canada
Post Re: A better way to empty the Recycle Bin
November 30th, 2009, 1:12 am
Nah, it's not the sort of "read" where you go from start to finish. Instead, if you ever want to do something, but don't know how just do a quick search through the manual (it has a search feature, after all) to see if there isn't already a way to do it.

Profile
User avatar

Joined: August 7th, 2009, 11:23 pm
Posts: 91
Post Re: A better way to empty the Recycle Bin
November 30th, 2009, 1:24 pm
But if i do, I could pick up some interesting features on the way :)

Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.