如果您的计算机上有一个文件具有无法识别的扩展名,那么Windows将简单地为该文件分配一个通用文件图标(file icon)。如果您在公司环境中工作,使用专有格式的自定义软件应用程序可能会一直发生这种情况。(custom software)
即使您是家庭用户(home user),也值得您花时间更改为文本文档或所有PDF文档等分配的(PDF)默认图标(default icon)。此提示实际上只是用于根据您的喜好自定义Windows的外观(look and feel).
在Windows XP中,更改文件类型(file type)的图标(s icon)非常简单,可以通过Windows 资源管理器(Windows Explorer)完成。不幸的是,该过程在Windows 7(Windows 7)和Windows 8中更为复杂。在那里您必须手动编辑注册表项,这并不好玩。值得庆幸的是,有几个免费软件程序可以完成工作而不会造成混乱。
在 Windows XP 中更改文件类型图标
第 1 步(Step 1):打开我的电脑(My Computer)并转到工具(Tools),然后是文件夹选项(Folder Options)。
第 2 步(Step 2):单击“文件类型(File Types)”选项卡,您将看到计算机上所有已注册文件类型的列表以及扩展名和图标。
第 3 步(Step 3):向下滚动到要更改图标的文件扩展名,然后在列表中选择它。(file extension)之后,单击对话框底部的高级按钮。(Advanced)
第 4 步(Step 4):单击右上角的更改图标(Change Icon)按钮并选择您的替换图标(replacement icon)。
这就是在Windows XP 和 Windows Vista中更改(Windows XP and Windows Vista)文件类型(file type)的图标是多么简单。现在让我们谈谈Windows 7和Windows 8。
(Change File Type Icon)在Windows 7/8更改文件类型图标
对于Windows 7及更高版本,有几个免费软件实用程序可以为您更改文件图标,而无需在注册表中乱七八糟。我要提两个我用过的并且效果很好的。
类型
Types是一个非常简单的应用程序,它只做一件事。如果该程序是不需要安装的独立可执行文件,那就太好了,但不幸的是,事实并非如此。无论如何(Anyway),一旦您安装并运行它,您将获得一个包含系统上所有当前注册的文件类型及其图标的框。
在我的示例中,我想更改文本文件的默认图标(default icon),所以我向下滚动到TXT扩展名并选择它。单击(Click)顶部的齿轮图标,将弹出属性框。
在“类”选项卡上,您可以看到该(Class)文件类型(file type)的关联程序的路径。在这种情况下,记事本(Notepad)默认打开TXT文件。如果您愿意,您实际上可以在此处更改默认程序(default program),但您也可以通过Explorer进行更改。
我们感兴趣的标签是Icon。默认情况下,它会显示存储在SYSTEM32 目录中的(SYSTEM32 directory)imageres.dll 文件(imageres.dll file)中的图标。此DLL 文件(DLL file)包含系统上使用的许多默认系统(default system)图标。
如果您在这里没有找到任何可用的图标,您可以阅读我之前关于从EXE 和 DLL 文件(EXE and DLL files)中提取图标或获取自己的图像并将其转换为图标的帖子。拥有自定义图标(custom icon)后,您可以单击黄色的小文件夹按钮并浏览(folder button and browse)到要使用的图标。
只需(Simply)选择图标,然后关闭属性窗口。您还将在属性窗口顶部的标题区域中看到(header area)图标更改。(icon change)
正如您在上面看到的,我将TXT 文件(TXT file)类型的图标更改为不同的图标,现在该图标将显示在Windows在(Windows)操作系统中(operating system)显示它的任何位置。
文件类型人
我真正喜欢的第二个程序来自Nirsoft,这是我最喜欢的免费实用程序公司。该程序称为FileTypesMan,它比 Types 更好,因为它不需要在系统上进行任何安装。
运行后,您可以使用第一列 ( Extension )向下滚动到要查找的文件扩展名(file extension)。在我的示例中,我再次找到了.TXT 文件(.TXT file)扩展名,在底部您可以看到与该扩展名相关的不同操作。这与类型中的操作(Actions)选项卡相同。
当您双击该条目时,您将看到一个包含大量属性和设置的弹出对话框。(popup dialog)
单击默认图标(Default Icon)旁边的小按钮,然后选择您的图标文件(icon file)。您还可以配置一系列高级选项来显示/隐藏与文件扩展名(file extension)相关的不同设置。如果您经常使用某种文件类型(file type)并且想要一个比默认图标更好的图标,那么这两个程序是最佳选择。
就是这样。如果您对更新文件类型(file type)的图标有任何疑问或问题,请在评论中告诉我们。享受!
How to Change the File Type Icon in Windows
If you hаve a file on your computer with a non-recognizable еxtension, then Windоws will simply assign that file a generic file icon. If you work in a corpоrate environment, this can happen all the time with custom software applications using proprietarу formats.
Even if you are a home user, it might be worth your time to change the default icon that is assigned for a text document or for all PDF documents, etc. This tip is really just for customizing the look and feel of Windows to your liking.
In Windows XP, changing a file type’s icon was very simple and could be done via Windows Explorer. Unfortunately, the process is more complicated in Windows 7 and Windows 8. There you have to manually edit registry entries, which is no fun. Thankfully, there are a couple of freeware programs out there that get the job done without all the mess.
Change File Type Icon in Windows XP
Step 1: Open My Computer and go to Tools and then Folder Options.
Step 2: Click on the File Types tab and you’ll see a listing of all the registered file types on your computer along with the extensions and the icon.
Step 3: Scroll down to the file extension you want to change the icon for and then select it in the list. After that, click on the Advanced button at the bottom of the dialog.
Step 4: Click the Change Icon button at the top right and choose your replacement icon.
That’s how simple it is to change the icon for a file type in Windows XP and Windows Vista. Now let’s talk about Windows 7 and Windows 8.
Change File Type Icon in Windows 7/8
For Windows 7 and higher, there are a couple of freeware utilities that can change the file icons for you without having to mess around in the registry. I’m going to mention two that I have used and that work well.
Types
Types is a very simple app that only does one thing. It would have been nice if the program was a standalone executable that didn’t require an install, but unfortunately, it’s not. Anyway, once you install it and run it, you’ll get a box with all of the currently registered files types on the system and their icons.
In my example, I want to change the default icon for text files, so I scrolled down to the TXT extension and selected it. Click on the gear icon at the top and that will bring up the properties box.
On the Class tab, you can see the path to the associated program for that file type. In this case, Notepad opens TXT files by default. You can actually change the default program here if you like, but you can also do that via Explorer.
The tab we are interested in is Icon. By default, it shows you the icons stored in the imageres.dll file stored in the SYSTEM32 directory. This DLL file contains a lot of the default system icons used on the system.
If you don’t find any usable icon here, you can read my previous post on extracting icons from EXE and DLL files or taking your own images and converting them into icons. Once you have a custom icon, you can click the little yellow folder button and browse to the icon you want to use.
Simply select the icon and then close out of the properties window. You’ll also see the icon change in the header area at the very top of the properties window.
As you can see above, I changed the icon for the TXT file type to something different and now that icon will show up wherever Windows displays it across the operating system.
FilesTypesMan
The second program I really like is from Nirsoft, my favorite company when it comes to free utilities. The program is called FileTypesMan and it’s better than Types because it doesn’t require any installation on the system.
Once you run it, you can scroll down to the file extension you are looking for using the first column (Extension). In my example, I again found the .TXT file extension and at the bottom you can see the different actions associated with that extension. This is the same as the Actions tab in Types.
When you double-click on the entry, you’ll get a popup dialog with a whole bunch of properties and settings.
Click on the little button next to Default Icon and choose your icon file. You can also configure a bunch of advanced options for showing/hiding different settings related to the file extension. If you work with a certain file type a lot and want a better icon than the default, these two programs are the best options.
That’s about it. If you have any questions or problems updating the icon for a file type, let us know in the comments. Enjoy!