磁盘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:

安装后,您只需右键单击驱动器,然后从菜单中选择“磁盘清理”:

磁盘1无法更改磁盘驱动器号_将磁盘清理添加到驱动器的右键单击菜单

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,则会询问您是否要清理文件或所有文件…

磁盘1无法更改磁盘驱动器号_将磁盘清理添加到驱动器的右键单击菜单

And then disk cleanup will begin:

然后磁盘清理将开始:

磁盘1无法更改磁盘驱动器号_将磁盘清理添加到驱动器的右键单击菜单

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

磁盘1无法更改磁盘驱动器号_将磁盘清理添加到驱动器的右键单击菜单

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无法更改磁盘驱动器号