1. 程式人生 > 實用技巧 >磁碟1無法更改磁碟驅動器號_將磁碟清理新增到驅動器的右鍵單擊選單

磁碟1無法更改磁碟驅動器號_將磁碟清理新增到驅動器的右鍵單擊選單

磁碟1無法更改磁碟驅動器號

磁碟1無法更改磁碟驅動器號

The registry hack for this article comes to us courtesy of jd2066, one of our helpful forum members.

本文的登錄檔黑客是由我們有用的論壇成員之一jd2066提供給我們的。

Normally when you want to access the Disk Cleanup tool, you usually have to either find it through the start menu, or open up the drive properties window. Instead of going through all that, we can use a simple registry hack to add a menu item to the drive right-click menu.

通常,當您要訪問磁碟清理工具時,通常必須通過開始選單找到它,或者開啟驅動器屬性視窗。 無需進行所有操作,我們可以使用簡單的登錄檔技巧將選單項新增到驅動器右鍵單擊選單。

Using the Hack

使用hack

After installation, you can simply right-click on a drive and choose “Disk Cleanup” from the menu:

安裝後,您只需右鍵單擊驅動器,然後從選單中選擇“磁碟清理”:

image

If you are using Windows 7 or Vista, you’ll be asked whether you want to clean up your files or all files…

如果您使用的是Windows 7或Vista,則會詢問您是否要清理檔案或所有檔案…

image

And then disk cleanup will begin:

然後磁碟清理將開始:

image

Manual Registry Hack

手動登錄檔破解

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

通過開始選單搜尋或執行框開啟regedit,然後向下瀏覽至以下鍵:

HKEY_CLASSES_ROOT\Drive\shell

HKEY_CLASSES_ROOT \ Drive \ shell

image

Create a new key called “diskcleanup” and set the default value to “Disk Cleanup”. Then create another key underneath it called “command” and set the value to the following:

建立一個名為“ diskcleanup”的新金鑰,並將預設值設定為“ Disk Cleanup”。 然後在它下面建立另一個名為“ command”的鍵,並將值設定為以下內容:

cleanmgr.exe /d %1

cleanmgr.exe / d%1

The change should be immediate, just right-click on the drive and you should see the new menu item.

更改應該是立即的,只需右鍵單擊驅動器,您應該會看到新的選單項。

Downloadable Registry Hack

可下載的登錄檔黑客

Simply download, extract, and double-click on DiskCleanupDriveMenu.reg to enter the information into the registry. You can use the included RemoveDiskCleanupDriveMenu.reg file to reverse the changes.

只需下載,提取並雙擊DiskCleanupDriveMenu.reg,即可將資訊輸入登錄檔。 您可以使用隨附的RemoveDiskCleanupDriveMenu.reg檔案來撤消更改。

Download DiskCleanupDriveMenu Registry Hack

下載DiskCleanupDriveMenu登錄檔黑客

翻譯自: https://www.howtogeek.com/howto/windows-vista/add-disk-cleanup-to-the-right-click-menu-for-a-drive/

磁碟1無法更改磁碟驅動器號