How to add “Empty Recycle Bin” option to the Windows 7 context menu

Now for a post that is a bit more technical in nature than what I normally write about (but I figure I’d help other people out who have been looking for a solution to this problem).

I’ve been a big fan of having an “Empty Recycle Bin” option on my right-click context menu in Windows (XP and Vista) for many years now. It acts as both a reminder as to whether I’ve deleted something (the option is active) or whether I’ve recently cleaned things out (the option is greyed-out). More importantly, it’s a great little shortcut to simply empty the recycle bin in Windows. With the upcoming release of Windows 7, though, the Registry edit to add the option no longer works. After some thorough forum- and web-searching, I’ve found the answer.

The old CLSID for the Recycle Bin was {645FF040-5081-101B-9F08-00AA002F954E}. You could simply add this as a new key to the HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\ registry entry, and the “Empty Recycle Bin” option would show up on your context menu whenever you clicked in blank space (either on your desktop or within a folder).

After rooting around a bit, it looks like a new command was added specifically to Windows 7 for the emptying of the recycle bin. If you look at this location: HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\empty , you’ll notice that there is now a command entry. Thus, to make this option work for the context menu on your desktop and folders, you simply need to duplicate the “empty” key and its “command” subkey in the appropriate location. Here’s the code to make this work (please be sure to always back up your registry before you make any changes – I take no responsibility for any problems or issues that may arise):


Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty]
"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc38486781}"
"Description"="@shell32.dll,-31332"
"Icon"="shell32.dll,-254"
"MUIVerb"="@shell32.dll,-10564"
[HKEY_CLASSES_ROOT\Directory\Background\shell\empty\command]
"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

Doing this even gives you the little Recycle Bin icon in your context menu. Cool! I hope this helps anyone out there looking for an answer to this problem!

It’s summertime (and time for a ski season recap)!

Sorry for the seven-month gap in postings! Ski season happened, and then spring quarter occurred…

Anyhow, the ski season got off to a slow start (except for the massive December storm), and we were left skiing on ice for almost a month. At one point, it got up to ~60 degrees at Mt. Hood Meadows…in January! Fortunately, though, things improved in mid-to-late February and continued to get better and better from there. The skiing at both Mt. Bachelor and Mt. Hood Meadows was awesome – lots of late-season powder days. Here’s hoping that next year is just as good!

The first photo below is from Mt. Bachelor at the end of January – it was nice and cold, but there had been very little snow for almost a month – you can see the blue ice beneath the Summit lift! The last two photos are from late-April at Mt. Hood Meadows. The snow really piled up at the top of the mountain – you can see that the traverse to Upper Heather was really built-up.

Summit lift at Mt. Bachelor on 1-29-2009Cascade Express on 4-25-2009The Route to Upper Heather

In fact, this year was so good that I’m looking into buying some new powder skis. The Line Sir Francis Bacon skis from last year are a pretty good deal right now, and all the reviews have been really positive. If only El Niño wasn’t strengthening right now!!!

Done for the quarter – time for skiing to start!

I finally completed all of my classes for the fall quarter today.  Both Contemporary Energy Applications (ECE 530) and Power Electronics (ECE 531) were really good, informative classes, and I learned quite a bit from both.  After being back on a quarter system, though, I must admit that I prefer semesters.  The short length of each quarter dictates an extremely rapid pace in order to cover enough material, which is not very conducive to learning.  Semesters, in my opinion, allow a much more thorough and in-depth examination of the concepts and details being taught, which, when one is talking about advanced-level electrical engineering, is much preferred.

And now that my first quarter as a graduate student is over (except for grading ENGR 201 finals!), I’m looking forward to the winter break.  Fortunately, it looks like the next few weeks are shaping up to be cold and wet (which, in the mountains = snow), so the skiing forecast is starting to look much more positive after an initially very slow start.  This is the forecast for days 8-14 from the Climate Prediction Center of the National Weather Service:

8-14 Day Temperature Forecast from the National Weather Service

8-14 Day Precipitation Forecast from the National Weather Service

Things are looking really good, with above-normal precipitation and below-normal temperatures. Let’s hope that this is actually what happens!

Of course, there is always an element of chance in predicting the weather, but one can only hope that conditions will end up as nice as last year.  The overall weather pattern is trending toward La Niña, which normally bodes well for snow in the mountains.  I’m really looking forward to getting out to a variety of ski areas this year.  Besides skiing at Mt. Hood Meadows, I am also going to be going to Mt. Bachelor as part of a skiing class that I am taking through OSU.  And, of course, I really want to make it back to Crystal this year.  There is nothing like standing at the top of Crystal on a beautiful, crisp morning with only a few people around and fresh powder to be enjoyed:

IMG_0009.jpgIMG_0010.jpgIMG_0011.jpgIMG_0012.jpgIMG_0015.jpg

So…who’s excited for ski season?