如何在Windows中更改驱动器图标

您所在的位置:网站首页 光盘驱动器的图片 如何在Windows中更改驱动器图标

如何在Windows中更改驱动器图标

2024-06-11 18:14| 来源: 网络整理| 查看: 265

wdi_top

If you’ve ever wished you could change the icon Windows uses for a drive in File Explorer, then you’re in luck. We have two ways to show you how to do just that.

如果您曾经希望可以在File Explorer中更改Windows用于驱动器的图标,那么您很幸运。 我们有两种方法向您展示如何做到这一点。

Changing your drive icons is just one of the many ways you can customize your icons in Windows. You can even make high-resolution icons out of your own images if you can’t find other icons you like. We’ve got two ways you can change drive icons in Windows. The first way uses a free third-party app to let you change the icon for an individual drive. The second way involves a couple of quick edits to the Windows Registry.

更改驱动器图标只是在Windows中自定义图标的众多方法之一。 如果找不到喜欢的其他图标,您甚至可以使用自己的图像制作高分辨率的图标。 您可以通过两种方式在Windows中更改驱动器图标。 第一种方法是使用免费的第三方应用程序来更改单个驱动器的图标。 第二种方法涉及对Windows注册表的几个快速编辑。

选项一:使用驱动器图标更改器更改单个驱动器图标 (Option One: Change an Individual Drive Icon with Drive Icon Changer)

The easiest way to change the icon for an individual drive is with a free tool named Drive Icon Changer. It was originally written for Windows Vista but it also works in Windows 7, 8, and 10 to let you quickly change the icon for any drive.

更改单个驱动器图标的最简单方法是使用名为Drive Icon Changer的免费工具。 它最初是为Windows Vista编写的,但也可以在Windows 7、8和10中使用,以使您可以快速更改任何驱动器的图标。

After you download and extract the program, you’ll need to run it with administrative privileges. Right-click the EXE file and choose “Run as administrator.” The first time you run the tool, it may ask you to install some .NET Framework files, so go ahead and let it do that. It’s also a portable app, so there’s no installation necessary.

下载并解压缩程序后,您需要以管理权限运行它。 右键单击EXE文件,然后选择“以管理员身份运行”。 首次运行该工具时,它可能会要求您安装一些.NET Framework文件,因此请继续进行操作。 它也是便携式应用程序,因此无需安装。

After running it, you’ll see that Drive Icon Changer has only one screen where you select the drive for which you want to change the icon and then browse for the ICO file you want to use. There are no additional settings available. Select your drive, find your ICO file, and then click the “Save” button. In our example, we’re using a set of wooden drive icons from IconArchive.

运行它之后,您将看到Drive Icon Changer只有一个屏幕,您可以在其中选择要更改其图标的驱动器,然后浏览要使用的ICO文件。 没有其他可用设置。 选择您的驱动器,找到您的ICO文件,然后单击“保存”按钮。 在我们的示例中,我们使用了IconArchive中的一组木制驱动器图标。

wdi_1

You’ll get a notification that the icon has been changed successfully.

您将收到有关图标已成功更改的通知。

wdi_2

You’ll then need to restart your PC for the change to take effect if you selected an internal drive. If you selected a removable drive, you can also just disconnect and reconnect it. If you’re changing the icons for multiple drives, you can also wait and restart your PC when you’re done with all of them.

然后,如果您选择了内置驱动器,则需要重新启动PC才能使更改生效。 如果选择了可移动驱动器,则也可以断开并重新连接它。 如果要更改多个驱动器的图标,则在完成所有驱动器的操作后,还可以等待并重新启动PC。

wdi_3

After restarting, you should see your new drive icon in File Explorer.

重新启动后,您应该在文件资源管理器中看到新的驱动器图标。

wdi_4

Drive Icon Changer works by creating two hidden files on the root directory of whatever drive you select. One is a copy of the ICO file that gets renamed to “Drive.ico” and the other is a simple autorun.inf file that contains only the following lines:

Drive Icon Changer通过在所选驱动器的根目录上创建两个隐藏文件来工作。 一个是ICO文件的副本,该副本已重命名为“ Drive.ico”,另一个是简单的autorun.inf文件,仅包含以下几行:

[autorun] ICON=Drive.ico wdi_5

So, if you prefer, you could just create that autorun.inf file yourself using Notepad, copy the ICO file to your drive and rename it, restart your PC (or disconnect and reconnect the drive if it’s removable), and the drive icon would change. The tool just makes it a bit easier.

因此,如果愿意,您可以使用记事本自己创建该autorun.inf文件,将ICO文件复制到驱动器中并重命名,重新启动PC(或在驱动器可移动的情况下断开并重新连接驱动器),驱动器图标将更改。 该工具使其变得更简单。

And if you want to reverse the changes you’ve made to a drive, all you have to do is delete those two files.

如果要撤消对驱动器所做的更改,只需删除这两个文件即可。

NOTE: Since this works by saving files to the drive, optical drives are tricky. You won’t be able edit the image used for an empty optical drive or the image used when a finalized disc is inserted. You can, however, change the image for a rewritable drive or a writeable drive you haven’t finalized yet. You can change optical drive icons using the instructions in the next section, though.

注意:由于这可以通过将文件保存到驱动器来完成,因此光驱非常棘手。 您将无法编辑用于空光盘驱动器的图像或插入已终结处理的光盘时的图像。 但是,您可以更改尚未完成的可擦写驱动器或可写驱动器的映像。 但是,您可以使用下一部分中的说明更改光盘驱动器图标。

通过编辑注册表来更改单个驱动器图标 (Change an Individual Drive Icon by Editing the Registry)

While changing an individual drive icon is much easier using Drive Icon Changer, you can also make a similar change by editing the Registry. Why go through the extra effort? Well, you might have some autorun restrictions in place that don’t let you use the first method, or you might want to change the icon used for an optical drive. Maybe you don’t like the idea of letting an app do what you can do yourself. Or maybe you’re just curious to see where this stuff is in the Registry. At any rate, the changes are really pretty easy and they work in Windows 7, 8, and 10.

尽管使用Drive Icon Changer更改单个驱动器图标要容易得多,但您也可以通过编辑注册表来进行类似的更改。 为什么要付出额外的努力? 好吧,您可能有一些自动运行限制,这些限制不允许您使用第一种方法,或者您可能想更改用于光驱的图标。 也许您不喜欢让应用程序做自己可以做的事的想法。 或者,也许您只是想看看注册表中的内容。 无论如何,这些更改确实非常容易,并且可以在Windows 7、8和10中使用。

Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.

标准警告:注册表编辑器是一个功能强大的工具,滥用它会使您的系统不稳定甚至无法运行。 这是一个非常简单的技巧,只要您按照说明进行操作,就不会有任何问题。 也就是说,如果您以前从未使用过它,请在开始之前考虑阅读有关如何使用注册表编辑器的信息。 并在进行更改之前一定要备份注册表(和您的计算机!)。

Open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and give it permission to make changes to your PC.

通过单击开始并键入“ regedit”来打开注册表编辑器。 按Enter键打开注册表编辑器,并授予其对PC进行更改的权限。

own_1

In the Registry Editor, use the left sidebar to navigate to the following key:

在注册表编辑器中,使用左侧边栏导航至以下键:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons wdi_7

Next, you’re going to create a new key inside the DriveIcons key. Right-click the DriveIcons key and choose New > Key. Name the new key using the drive letter you want to change. In our example, we’re changing drive H.

接下来,您将在DriveIcons密钥内创建一个新密钥。 右键单击DriveIcons键,然后选择“新建”>“键”。 使用要更改的驱动器号命名新密钥。 在我们的示例中,我们将更改驱动器H。

wdi_8

NOTE: As you probably noticed, this method differs from using Drive Icon Changer in that, instead of using the autorun feature, you’re actually assigning the icon to a drive letter. For that reason, you may not get the results you want with removable drives. This especially holds true if you use multiple reusable drives and the letters change often. To get around this, you can assign static drive letters to your removable drives.

注意:您可能已经注意到,此方法与使用“驱动器图标更改器”的不同之处在于,实际上是将图标分配给驱动器号,而不是使用自动运行功能。 因此,使用可移动驱动器可能无法获得所需的结果。 如果您使用多个可重复使用的驱动器并且字母经常更改,则尤其如此。 要解决此问题,可以将静态驱动器号分配给可移动驱动器。

Now, you’re going to create another new key, this time inside the drive letter key you just created. Right click the key you named after your drive letter and choose New > Key. Name the new key “DefaultIcon.”

现在,您将创建另一个新密钥,这次是在刚创建的驱动器盘符中。 右键单击以驱动器号命名的密钥,然后选择“新建”>“密钥”。 将新密钥命名为“ DefaultIcon”。

wdi_9

Select the new DefaultIcon key in the left pane and then, in the right pane, double-click the (Default) value to open its properties window.

在左窗格中选择新的DefaultIcon项,然后在右窗格中,双击(默认)值以打开其属性窗口。

wdi_10

In the “Edit String” window, type the full path (surrounded by quotes) for the ICO file you want to use as your icon into the “Value data” box and then click “OK.”

在“编辑字符串”窗口中,在“值数据”框中键入要用作图标的ICO文件的完整路径(用引号引起来),然后单击“确定”。

wdi_11

The changes should take effect immediately, so you won’t need to restart your PC. Open File Explorer—or refresh the window if it was already open—and you should see the new drive icon.

所做的更改应立即生效,因此您无需重新启动PC。 打开文件资源管理器-或刷新窗口(如果已打开)-您应该看到新的驱动器图标。

wdi_4

If you want to reverse the changes, just head back to the DriveIcons key in Registry Editor and delete the drive letter key you created.

如果要撤消更改,只需回到注册表编辑器中的DriveIcons项并删除创建的驱动器号密钥。

翻译自: https://www.howtogeek.com/291674/how-to-change-drive-icons-in-windows/



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3