Add Defragment to a Drives Right-Click Menu
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…
Which will start up the command-line version of Disk Defragmenter (after accepting the UAC prompt)
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
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.
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.
Related Posts by Categories
- Ultimate Windows Tweaker v1.2 Released
- How to copy Text from images
- How to hide Desktop Icons in Windows 7 and Windows Vista
- How to add Tag to the Picture in Windows Vista & Windows 7
- How to run Internet Explorer and Firefox concurrently within Firefox browser
- Command-Line Switches for Sc.exe
- How to Capture a screen shot
- How to change Windows Registered Owner and Organization Name
- Another way to Exit Explorer
- How to register and unregister dll files
- Ultimate Windows Tweaker - Tweak UI For Windows Vista
- Increase the size of Recycle Bin
- Changing the Drive letter
- Resizing Partition in Windows Vista
- Saving a Search in Windows Vista
- How to disable media sharing in Windows Media Player
- How to Install XP on Pre-Installed Vista Computer Using Vista Boot Pro
- How to install Windows Vista in less than 512 MB of RAM
- How to Play .OGM Video Files in Windows Vista
- Disable Run Dialogue in Windows Vista/XP
- Disable Logging off in Windows Vista/XP
- Add "Open with Notepad" to the Context Menu for All Files
- formating USB Flash (pen) drive into NTFS format
- View installed OS Service Packs and Hotfixes Using Command Line
- Ultimate Windows Tweaker v1.2 Released
- How to add a Website Link at Desktop Context Menu
- How to Turn off Sign In Multiple feature in WLM
- How to Reduce the Silverlight App size
- How to Add your Blog Activities on Windows Live Account
- How to copy Text from images
- How to hide Desktop Icons in Windows 7 and Windows Vista
- How to add Tag to the Picture in Windows Vista & Windows 7
- How to merge multiple PDF files in single PDF file
- How to determining whether or not a photo has been edited
- How to run Internet Explorer and Firefox concurrently within Firefox browser
- Ultimate Windows Tweaker 1.1 Beta released
- Command-Line Switches for Sc.exe
- How to change Windows Registered Owner and Organization Name
- How to register and unregister dll files
- Increase the size of Recycle Bin
- Changing the Drive letter
- How to disable media sharing in Windows Media Player
- How to enable CMD at Right Click Context Menu
- How to install Windows Vista in less than 512 MB of RAM
- How to Play .OGM Video Files in Windows Vista
- Disable Run Dialogue in Windows Vista/XP
- Disable Logging off in Windows Vista/XP
- Add "Open with Notepad" to the Context Menu for All Files
- How to connect Windows Live Hotmail into Outlook
- How to sorts Emails into Folders in Windows Live Hotmail
- Ultimate Windows Tweaker v1.2 Released
- How to add a Website Link at Desktop Context Menu
- Trim YouTube Videos Online
- Convert Docx file to other Document format using Docx Converter
- How to Turn off Sign In Multiple feature in WLM
- How to Reduce the Silverlight App size
- How to Add your Blog Activities on Windows Live Account
- How to type in Hindi or other Indian Languages
- Read India’s popular Newspapers Online for free
- How to copy Text from images
- How to merge multiple PDF files in single PDF file
- How to determining whether or not a photo has been edited
- How to run Internet Explorer and Firefox concurrently within Firefox browser
- How to make a personalized Valentine’s card
- How to Download Microsoft TechNet Library and read offline
- How to register and unregister dll files
- Inserting Flash ( SWF Files ) into Powerpoint 2007
- Switches for Silent Installations
- Creating themes for Google Chrome - AskVG.com
- Disable Run Dialogue in Windows Vista/XP
- Disable Logging off in Windows Vista/XP
- formating USB Flash (pen) drive into NTFS format
August 10, 2008 at 7:32 PM
Good Job!
This is very good...I'll try this tip.
August 11, 2008 at 12:25 PM
hi hari thanks for the tip
August 11, 2008 at 3:05 PM
Welcome Guys !
Post a Comment