Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Add Defragment to the Right-Click Menu for a Drive Thêm Defragment vào Right-Click Menu cho một 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. Sau khi viết bài báo cuối tuần về làm thế nào để thêm Disk Cleanup trình đơn ngữ cảnh cho các ổ đĩa, tôi nhận được yêu cầu cho một số cách để thêm một mục trình đơn cho Defrag để thay thế. With a simple registry hack we can do just that. Với một registry hack đơn giản, chúng tôi có thể làm điều đó.

After manually applying or downloading the hack, you'll have a new item on the right-click menu for your drives… Sau khi áp dụng theo cách thủ công hoặc tải các hack, bạn sẽ có một mục mới vào trình đơn nhấp chuột phải cho ổ đĩa của bạn ...

image

Which will start up the command-line version of Disk Defragmenter (after accepting the UAC prompt) Mà sẽ bắt đầu lên các phiên bản dòng lệnh của Disk Defragmenter (sau khi chấp nhận các nhắc nhở UAC)

image

Manual Registry Hack Hướng dẫn sử dụng Registry Hack

Open up regedit.exe through the start menu search or run box, and then browse down to the following key: Mở regedit.exe thông qua việc tìm kiếm hay hộp trình đơn bắt đầu chạy, và sau đó duyệt xuống khóa dưới đây:

HKEY_CLASSES_ROOT\Drive\shell HKEY_CLASSES_ROOT \ Drive \ shell

image

Create a new key under shell called “runas”, and then set the (Default) value to “Defragment”. Tạo một khoá mới dưới vỏ được gọi là "runas", và sau đó thiết lập mặc định () giá trị cho "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. Nếu bạn muốn giấu mặt hàng này đơn phía sau bên phải phím Shift nhấp chuột đơn, sau đó thêm một chuỗi mới gọi là mở rộng với giá trị không có.

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. Tiếp theo, bạn sẽ cần phải tạo một phím gọi là "lệnh" và thiết lập giá trị mặc định sau đây, là các lệnh để chạy phân mảnh với các tùy chọn mặc định, nhưng hiện sản lượng tiết.

defrag %1 -v defrag% 1-v

You can alternately choose from one of the other defrag switches here if you'd like. Bạn xen kẽ có thể chọn từ một trong những phân mảnh khác bị chuyển mạch ở đây nếu bạn muốn.

Downloadable Registry Hack Miễn phí 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). Đơn giản chỉ cần tải về, giải nén, và nhấp đúp chuột vào một trong hai AddDefragToDriveMenu.reg (cho trình đơn thường xuyên) hoặc AddDefragToExtendedDriveMenu.reg (để ẩn đằng sau phím Shift). There's also an included removal script that will remove either one. Còn có một kịch bản gỡ bỏ bao gồm rằng sẽ loại bỏ hoặc là một.

Download AddDefragToDriveMenu Registry Hack Tải về AddDefragToDriveMenu Registry Hack

This article was originally written on 06/25/08 Tagged with: Bài viết này ban đầu được viết ngày 06/25/08 Tagged với: Vista Tips & Tweaks Vista Tips & Tweaks , , Windows 7 Windows 7 , , Windows Vista Windows Vista

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (13) Bình luận (13)

  1. USBman USBman

    As one of those that requested this tweak, I humbly thank you. Là một trong những yêu cầu chỉnh này, tôi khiêm nhường cảm ơn bạn.

    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!). Thêm các runas "" mảnh vượt qua các yêu cầu quản trị, và "" mở rộng là một chuỗi liên lạc tốt đẹp (làm việc cho đăng bài nói trên trước ngày thêm Disk Cleanup quá!).

    Overall, the kind of elegant solution I've come to expect from your site. Nhìn chung, các loại của giải pháp thanh lịch tôi đã đến để mong đợi từ trang web của bạn. Well done. Well done.

  2. The Geek The Geek

    Glad I could help! Vui vì tôi có thể giúp đỡ! =) =)

  3. Brian Brian

    I sure wanted to try this but without the download. Tôi chắc chắn muốn thử này, nhưng mà không cần tải về.
    Since I have only minimal registry work I was careful to do exactly as you had posted. Vì tôi chỉ có công việc đăng ký tối thiểu tôi đã cẩn thận để thực hiện chính xác như bạn đã đăng.

    However, when I select defragmenet I get Tuy nhiên, khi tôi chọn defragmenet tôi nhận được
    “Which user account do you want to run this program.” "Tài khoản người dùng nào làm bạn muốn chạy chương trình này."
    I then selected current user. Sau đó tôi chọn người dùng hiện hành.
    But then I get just a flash of the DOS screen and it disappears. Nhưng sau đó tôi nhận được chỉ là một đèn flash của màn hình DOS và nó biến mất.

    I have double checked all the registry entries and they look just like the ones you posted. Tôi đã hai lần kiểm tra tất cả các mục đăng ký và họ trông giống như những người bạn được đăng. Any idea what I can do to keep the DOS screen from disappearing? Bất cứ ý tưởng những gì tôi có thể làm để giữ cho màn hình DOS từ biến mất?

    BTW, I don't have Vista, I am using XP 2nd Edition. BTW, tôi không có Vista, tôi đang sử dụng Windows XP 2nd Edition.

    THANKS THANKS

    BRIAN PAUL

  4. The Geek The Geek

    @Brian @ Brian

    For XP, you should rename the runas key to something else, like just “defrag”. Đối với Windows XP, bạn nên đổi tên runas chìa khóa để cái gì khác, như chỉ là "phân mảnh". I need to update the post to explain the alternate XP instructions… thanks for mentioning. Tôi cần phải cập nhật các bài để giải thích XP hướng dẫn thay thế ... thanks for nhắc đến.

  5. abhs94 abhs94

    Hey Geek, Hey Geek,
    This was really helpful Điều này đã thực sự hữu ích
    how do you get to know about such tweaks làm thế nào để bạn nhận biết về chỉnh như vậy

  6. Mike's beeps! Mike's tiếng bíp! Hahahahahahahahaha! Hahahahahahahahaha!

    You rock! You rock!

  7. MikeHigham MikeHigham

    You rock! You rock! Thanks! Cảm ơn!

  8. Mike Higham Mike Higham

    Could you please do one for Check Disk as well? Ông có thể xin hãy làm một cho Kiểm tra đĩa không?

  9. The Geek The Geek

    @Mike @ Mike

    Will get on that. Sẽ nhận được ngày đó.

  10. Motor Mike Motor Mike

    Does this work for network drives as well? Điều này làm việc cho các ổ đĩa mạng cũng?

  11. brandon brandon

    hey thnx alot for the helpful little tweaks hey thnx rất nhiều cho việc chỉnh ít hữu ích
    greatly appreciated đánh giá rất nhiều

  12. Spacegold Spacegold

    It's a nice little trick and I would jump on it in a second if Vista did not employ automatic defrag every week. It's a trick ít đẹp và tôi sẽ nhảy vào nó trong một giây nếu không sử dụng Vista tự động defrag mỗi tuần. On the rare occasion when a person might need to defrag a specific disk, it is easily done from the control panel. Nhân dịp hiếm hoi khi một người có thể cần phải phân mảnh đĩa cụ thể, đó là một cách dễ dàng thực hiện từ bảng điều khiển.

  13. bw bw

    I successfully implemented this reg hack, but the CMD prompt closes afterwards (automatically). Tôi thực hiện thành công này reg hack, nhưng CMD nhắc đóng cửa sau đó (tự động). Is there a way to have the CMD prompt stay open so I can review the results? Có cách nào để có CMD nhắc ở lại mở để tôi có thể xem lại các kết quả?

    Thanks Geek, not only for a great hack, but a great site. Thanks Geek, không phải chỉ cho một tuyệt vời hack, nhưng một trang web lớn.

    bw bw


Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.