Add Defragment to the Right-Click Menu for a Drive Dodajte Defragment na desno miškino tipko za Drive
After writing the article last week about how to add Disk Cleanup to the context menu for a drive, I received several requests for how to add another menu item for Defrag instead. Po pisanju članka prejšnji teden, o tem, kako dodati čiščenje diska na kontekstni meni za vožnjo, sem prejel več zahtev za kako dodati še eno menija za odmrzniti namesto tega. With a simple registry hack we can do just that. Z enostavno registracija kramp moremo storiti prav to.
After manually applying or downloading the hack, you'll have a new item on the right-click menu for your drives… Za ročno uporabo ali prenos kramp, boste imeli novo točko na desni klik menija za vaše pogone ...

Which will start up the command-line version of Disk Defragmenter (after accepting the UAC prompt) Kateri bo zagon ukazne vrstice različica za defragmentiranje diska (po sprejetju UAC uren)

Manual Registry Hack Manual Registry Hack
Open up regedit.exe through the start menu search or run box, and then browse down to the following key: Odprite regedit.exe skozi iskanje začetek jedilnik ali polje teči in poiščite do naslednjih ključnih:
HKEY_CLASSES_ROOT\Drive\shell HKEY_CLASSES_ROOT \ Drive \ shell

Create a new key under shell called “runas”, and then set the (Default) value to “Defragment”. Ustvarite nov ključ pod lupino imenovane "runas", in nato nastavite vrednosti (Privzeto), da "Defragmentiraj". 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. Če želite skriti ta element menija v ozadju desno tipko Shift-click meniju, nato dodamo nov niz imenovano razširjeno brez vrednosti.

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. Nato boste morali ustvariti ključ imenovan "command" in nastavite privzeto vrednost na naslednje, ki je ukaz za zagon odmrzniti s privzetimi možnostmi, vendar show verbose output.
defrag %1 -v odmrzniti% 1-v
You can alternately choose from one of the other defrag switches here if you'd like. Lahko izmenično izberejo enega od drugih odmrzniti stikala tukaj, če želite.
Downloadable Registry Hack Cool Registry Hack
Simply download, extract, and double-click on either AddDefragToDriveMenu.reg (for the regular menu) or AddDefragToExtendedDriveMenu.reg (to hide behind the Shift key). Preprosto download, citat, in dvokliknite na obeh AddDefragToDriveMenu.reg (za redni meni) ali AddDefragToExtendedDriveMenu.reg (skriti zadaj tipko Shift). There's also an included removal script that will remove either one. Tam je tudi vključena odstranitev scenarij, da bo odpravil enega.
Download AddDefragToDriveMenu Registry Hack Download AddDefragToDriveMenu Registry Hack

Daily Email Updates Dnevni Email Updates
You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:



As one of those that requested this tweak, I humbly thank you. Kot eden tistih, ki so zahtevali to poteg, ponižno hvala.
Adding the “runas” piece overcame the administrator requirement, and the “Extended” string is a nice touch (works for the aforementioned previous post on adding Disk Cleanup too!). Dodajanje "runas" kos premagal upravitelj zahteva, ter "razširjeno" string je lepo dotik (del za navedeno prejšnji post o dodajanju čiščenje diska preveč!).
Overall, the kind of elegant solution I've come to expect from your site. Na splošno, vrste elegantno rešitev sem pričakujejo iz vaše strani. Well done. Dobro opravljeno.
Glad I could help! Lepo, jaz bi lahko pomagal! =) =)
I sure wanted to try this but without the download. Hotel sem prepričan, da poskusite to, vendar brez prenosa.
Since I have only minimal registry work I was careful to do exactly as you had posted. Ker imam le minimalne registracija delo, ki sem bila pozorna, da se to točno tako, kot si imel posted.
However, when I select defragmenet I get Vendar, ko sem izberite defragmenet dobim
“Which user account do you want to run this program.” "Kateri uporabniški račun želite zagnati ta program."
I then selected current user. Jaz torej izbrane trenutnega uporabnika.
But then I get just a flash of the DOS screen and it disappears. Ampak potem sem dobil le trenutek za zaslon DOS-a in bo izginila.
I have double checked all the registry entries and they look just like the ones you posted. Imam dvojno preveri vse vnose v register in so videti kot tiste, ki jih objavil. Any idea what I can do to keep the DOS screen from disappearing? Kakšno idejo, kaj lahko storim, da bo zaslon DOS pojav?
BTW, I don't have Vista, I am using XP 2nd Edition. BTW, nimam razgled, rabim XP 2nd Edition.
THANKS Hvala
BRIAN BRIAN
@Brian @ Brian
For XP, you should rename the runas key to something else, like just “defrag”. Za XP, morate preimenovati runas ključ za nekaj drugega, kot samo "odmrzniti". I need to update the post to explain the alternate XP instructions… thanks for mentioning. Moram posodobiti delovno mesto, da pojasni nadomestnega XP navodila ... hvala za omenjajo.
Hey Geek, Hej Geek,
This was really helpful To je bilo pošteno uslužen
how do you get to know about such tweaks Kako ste spoznali o teh poteg
You rock! You rock!
You rock! You rock! Thanks! Hvala!
Could you please do one for Check Disk as well? Bi lahko prosim naredite nekaj za disk preverite tudi?
@Mike @ Mike
Will get on that. Bo dobil na to.
Does this work for network drives as well? Ali je to delo za omrežne pogone, pa tudi?
hey thnx alot for the helpful little tweaks hej thnx veliko zakaj pomoč malo poteg
greatly appreciated zelo uvaževati
It's a nice little trick and I would jump on it in a second if Vista did not employ automatic defrag every week. To je lepo trik in jaz bi mu skok v drugo, če Vista ne zaposlujejo avtomatski defrag vsak teden. On the rare occasion when a person might need to defrag a specific disk, it is easily done from the control panel. Ob redkih priložnosti, ko lahko oseba morali odmrzniti poseben disk, se lahko opravi od nadzorni plošči.
I successfully implemented this reg hack, but the CMD prompt closes afterwards (automatically). Sem uspešno izvedla ta reg kramp, vendar CMD hitro zapre zatem (avtomatično). Is there a way to have the CMD prompt stay open so I can review the results? Ali obstaja način, da CMD poziv odprta, da lahko pregledam rezultate?
Thanks Geek, not only for a great hack, but a great site. Hvala Geek, ne le za velik kramp, ampak velik položaj.
bw bw