您可能已经知道如何为本地硬盘驱动器或CD 驱动器(CD drive)创建自定义图标,但您知道还有一种简单的方法可以为USB 闪存(USB flash)驱动器创建自定义图标吗?您可以配置USB 驱动器(USB drive),以便无论何时将其插入 PC,它都会显示(ll show)自定义图标和自定义标签(custom icon and custom label),而不是 Windows 使用的默认可移动磁盘图标(disk icon)。
在本文中,我将向您展示创建自己的自定义USB 驱动器(USB drive)图标所需执行的步骤。请注意,此过程适用于任何使用Windows中的(Windows)自动运行功能(Autorun feature)的设备,例如CD(CDs)、DVD(DVDs)、外部硬盘驱动器等。
第 1 步(Step 1):您需要做的第一件事是在您的计算机或网上(online)找到您想要使用的.ICO 文件(.ICO file),或从图像创建您自己的ICO 文件。(ICO file)如果您想要真正快速的东西,您可以打开资源管理器(Explorer)并简单地执行搜索*.ICO。
还值得注意的是,谷歌搜索(Google search)有一些很棒的搜索功能来查找图标。转到Google 图片(Google image)搜索,然后输入filetype:ico 关键字(filetype:ico keyword),其中关键字是您要查找的图标类型。
你会得到一堆各种大小和类型的图标的结果,但很棒的部分是你可以根据大小、类型、时间、颜色等过滤搜索结果。在我们的例子中,你会想要选择Exactly from size 然后输入 64 作为width 和 height(width and height)。我尝试使用小于 64×64 的尺寸,但在Windows 7中不起作用。似乎图标文件(icon file)的最小尺寸必须为 64×64 像素。
第 2 步(Step 2):一旦您有了可用于USB 驱动器的(USB drive)图标文件(icon file),我们就需要创建所谓的Autorun.inf文件。这基本上是一个配置文件(configuration file),所有版本的Windows都会自动识别并用于设置连接的设备。要创建文件,请先打开记事本(Notepad)。
第 3 步(Step 3):现在复制下面的文本并将其粘贴到记事本文件(Notepad file)中。
[autorun]
标签=Aseem 驱动器
图标=autorun.ico
如果您只关心自定义图标(custom icon),则可以完全删除以 label 开头的第二行。否则,您可以在此处输入任何您想要的内容。似乎您也可以添加带有空格甚至撇号的标签,它仍然有效。如果您碰巧在使用复杂标签时遇到问题,请尝试在标签名称(label name)周围加上引号。
从第三行可以看出,该文件只是告诉 Windows它想用作驱动器图标的(drive icon)图标文件(icon file)的名称。如果你想要任何你喜欢的东西,你实际上可以改变图标文件(icon file)的名字,只要你把相同的名字放在autorun.inf 文件(autorun.inf file)的第三行。
第 4 步(Step 4):现在您已准备好文件,我们需要将其正确保存为INF 文件(INF file)。为此,请单击文件 - 保存(File – Save)。在“保存”对话框(Save dialog)中,您需要更改两件事。首先,单击Save as type(Save as type)旁边的下拉框,然后选择All Files。然后继续在文件名(File name)框中输入autorun.inf 。
现在确保将此文件保存在设备的根目录中。完成后,将ICO 文件也复制到(ICO file)闪存驱动器(flash drive)的根目录。这就是您设置它所要做的一切。继续并弹出您的闪存驱动器(flash drive),然后将其重新插入。如果一切正常,您现在应该在资源管理器中显示新的自定义图标和自定义标签:(custom icon and custom label)
此外,如果您不喜欢在打开闪存驱动器(flash drive)时自动显示这两个文件,您只需右键单击它们,选择属性(Properties)并选中底部的隐藏。(Hidden)
而已!现在,每当您将USB 驱动器(USB drive)插入计算机或任何计算机时,您都会看到您的自定义图标和标签(custom icon and label)!您也可以尝试将此技术用于其他自动播放设备,例如相机、MP3播放器、CDs/DVDs等!如果您有任何问题,请发表评论。享受!
How to Create Custom Icons for Flash or USB Drives
You probably already know how to create custom icons for your local hard drive or fоr yоur CD drive, but dіd you know there is also an easy way to create custom icons for USB flash drives? You can configure the USB drive so that whenever you рlug it into a PC, іt’ll show up with a custom іcon and custom label inѕtead of the default removable disk icon that Windows uses.
In this article, I’ll show you the steps you need to perform to create your own custom USB drive icon. Note that this procedure will work for anything that uses the Autorun feature in Windows like CDs, DVDs, external hard drives, etc.
Step 1: The first thing you’ll need to do is either find an .ICO file on your computer or online that you would like to use or create your own ICO file from an image. If you want something really fast you can open Explorer and simply perform a search for *.ICO.
It’s also worth noting that Google search has some awesome search features for finding icons. Go to Google image search and then type in filetype:ico keyword where keyword is the kind of icons you are looking for.
You’ll get a bunch of results for icons of all sizes and types, but the awesome part is that you can filter the search results based on size, type, time, color, etc. In our case, you’re going to want to choose Exactly from size and then type in 64 for width and height. I tried to use a size smaller than 64×64, but it would not work in Windows 7. Seems like the minimum size for the icon file has to be 64×64 pixels.
Step 2: Once you have an icon file that you can use for your USB drive, we then need to create what is called an Autorun.inf file. This is basically a configuration file that all versions of Windows automatically recognize and will use to set up the connected device. To create the file, first go ahead and open Notepad.
Step 3: Now copy the text below and paste it into the Notepad file.
[autorun]
label=Aseem Drive
icon=autorun.ico
If you only care about the custom icon, you can just remove the second line that starts with label completely. Otherwise, you can just type anything you want there. It seems that you can also add a label with spaces or even apostrophe’s and it still works. If you do happen to run into an issue using a complicated label, then try putting quotes around the label name.
As you can see from the third line, the file just tells Windows the name of the icon file it wants to use as the drive icon. You can actually change the name of the icon file if you want to anything you like as long as you put that same name in the third line of the of autorun.inf file.
Step 4: Now that you have the file ready, we need to save it properly as an INF file. To do that, click on File – Save. In the Save dialog, you need to change two things. Firstly, click on the drop down box next to Save as type and choose All Files. Then go ahead and type in autorun.inf into the File name box.
Now make sure to save this file at the root of your device. Once you have done that, copy over the ICO file to the root of the flash drive also. That’s all you have to do for setting it up. Go ahead and eject your flash drive and then plug it back in. If everything works properly, you should now have your new custom icon and custom label showing up in Explorer:
Also, if you don’t like both of those files showing up automatically whenever you open the flash drive, you can simply right-click on them, choose Properties and check Hidden at the bottom.
That’s it! Now whenever your plug your USB drive into your computer or any computer for that matter, you’ll see your custom icon and label! You can also try this technique for other autoplay devices, such as cameras, MP3 players, CDs/DVDs and more! If you have any questions, post a comment. Enjoy!