PaulSpoerry.com

You found me… insights on technology, philosophy, Windows, hacking and more.
  • Home
  • Archive
  • Contact
  • Categories
  • Search
  • About

Add Defragment to a Drives Right-Click Menu

PaulSpoerry | July 29, 2008

Direct from HowToGeek comes instructions on adding a simple registry tweak that will allow you to add “Defragment” to the context menu on any drive when you right click it.

After manually applying or downloading the hack, you’ll have a new item on the right-click menu for your drives…

image

Which will start up the command-line version of Disk Defragmenter (after accepting the UAC prompt)

image

Manual Registry Hack

Open up regedit.exe through the start menu search or run box, and then browse down to the following key:

HKEY_CLASSES_ROOT\Drive\shell

image

Create a new key under shell called “runas”, and then set the (Default) value to “Defragment”. If you want to hide this menu item behind the Shift key right-click menu, then add a new string called Extended with no value.

image

Next, you’ll need to create a key called “command” and set the default value to the following, which is the command to run defrag with the default options but show verbose output.

defrag %1 -v

You can alternately choose from one of the other defrag switches here if you’d like.

Downloadable Registry Hack

HowToGeek provides a downloadable registry hack to do all of this for you. Simply download, extract, and double-click on either AddDefragToDriveMenu.reg (for the regular menu) or AddDefragToExtendedDriveMenu.reg (to hide behind the Shift key). There’s also an included removal script that will remove either one.

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Related posts:

  1. Windows 7 Release Dates – let’s try this again

Categories
Tech, Vista Tweaks, Windows
Tags
command line version, context menu, default options, disk defragmenter, hkey classes root, howtogeek, menu search, registry hack, registry tweak, right click menu, root drive, shell, start menu, switches, vista tweak, Vista Tweaks, windows registry hack, windows vista
Comments rss
Comments rss
Trackback
Trackback

« Christians are weird sometimes What do Atheists and Christians Really Believe? »

Leave a Reply

Click here to cancel reply.

You must be logged in to post a comment.

Recent Posts

  • FCC releases Internet speed test tool
  • Microsoft shows games on Mobile, PC, and Xbox
  • Google Voice Explained
  • Windows Mobile 7 to be announced, 6.x to become free
  • Microsoft finally patches 17-year-old bug

Popular Posts

  • µTorrent 1.8.3 Final (uTorrent 1.8.3)
  • Google Chrome’s JavaScript Engine Is CRAZY FAST
  • Google Chrome’s JavaScript Engine Is CRAZY FAST
  • 20 Classic Hip Hop Album Covers Redone With Legos
  • Windows 7 Benchmarks – XP vs Vista vs 7

Recommended Hosting

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox