文件扩展名(File Extension)是标识文件类型的扩展名。如果您是普通的Windows用户,那么识别文件类型根本不是问题。因为从安全的角度来看,查看文件扩展名以识别您尝试打开的文件类型非常重要。因此,在这篇文章中,我们将了解如何在Windows 11/10/8/7显示文件扩展(show File Extensions)名,以及为什么应该显示它们。
由于文件名允许您使用多个句号,因此恶意软件文件的真实名称可能是realword.docx.exe。但是因为您没有将 Windows 设置为显示文件扩展名,所以您只会看到realword.docx。认为它是一个Word文档,您很可能最终单击它并感染您的计算机。另一方面,如果您将 PC 设置为显示文件扩展名,您会看到它的全名 – realword.docx.exe,这将帮助您识别它实际上是一个可执行文件,并且很可能是一个恶意软件文件. 因此,这将帮助您判断文件是否为恶意文件(tell if a file is malicious or not)。
什么是文件扩展名(File Extensions) 以及它们有何用处
不同(Different)的文件类型有不同的扩展名。音频(Audio)文件有 .mp3、.wav、.wma等,具体取决于用于打开该文件的程序。文件(File)扩展名还有助于操作系统识别打开该特定文件的相应程序。因此,您应该能够看到文件扩展名更安全,我们将让您知道如何启用选项以查看Windows中的文件扩展名。
如前所述,默认情况下Windows不显示文件扩展名并且它们是隐藏的。但是,您可以切换选项以查看它们。
(Show File Extensions)在Windows 11/10显示文件扩展名
有五种方法可以访问此设置:
- 通过文件资源管理器选项
- 通过 Windows 资源管理器功能区
- 使用注册表
- 使用命令提示符
- 使用组策略编辑器。
1]通过文件夹(Folder)或文件资源管理器(File Explorer)选项
要通过文件资源管理器选项(File Explorer Options)在Windows 11/10显示文件扩展(Show File Extensions)名,请按照下列步骤操作:
- 打开控制面板 > 外观和个性化(Personalization)。
- 现在,单击Folder Options或File Explorer Option,因为它现在被称为
- 选择查看选项卡。
- 在此选项卡的高级设置(Advanced Settings)下,您将看到隐藏已知文件类型的扩展名选项。(Hide extensions for known file types.)
- 取消选中此选项
- 单击应用和确定。
Windows 11/10 用户也可以在开始搜索框中搜索(Start)文件资源管理器选项(File Explorer Options)并打开此框。
现在,您可以在Windows系统的任何位置查看所有文件的文件扩展名。
在Windows 11/10/8.1 Explorer中,您可以通过Explorer访问(Explorer)文件资源管理器选项(File Explorer Options)。
Click View > Options > Change文件夹和搜索选项。
到达这里后,您可以按照上面的说明进行必要的操作。
在 Windows 7 中,打开资源管理器,按键盘上的Alt以显示经典栏。(Alt)接下来,单击Tools > Folder Options。现在按照上面提到的步骤。
这些是非常简单的步骤,您不需要任何第三方软件即可查看文件扩展名。Windows为我们提供了所有可以轻松实现的东西,关键在于了解和实施它们。这是在Windows 7中查看文件扩展名的第一种方式。
2]通过Windows文件资源管理器
要在Windows 11(Windows 11:)中显示文件扩展名:
- 打开资源管理器
- 点击顶部菜单中的查看
- 点击下一步显示
- 选择文件扩展名。
要在Windows 10(Windows 10, )中显示文件扩展名,请打开资源管理器(Explorer)并单击查看(View)选项卡。
只需选中“文件扩展名(File name extensions)”复选框,一切就绪。
3]使用注册表编辑器
点击WINKEY + R按钮组合以启动运行(Run)实用程序,输入 regedit 并点击Enter。注册表编辑器(Registry Editor)打开后,导航到以下键-
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
查找标记为 HideFileExt的(HideFileExt.)DWORD条目。(DWORD)
双击(Double)提到的DWORD条目并将其值设置为0。 这将显示隐藏的文件扩展名。
值 0 将隐藏文件扩展名。
退出注册表编辑器(Registry Editor),然后重新启动计算机以使更改生效。
4]使用Windows命令提示符
此修复可用于上述两种情况。插入Windows 11/10安装程序的可启动驱动器。
首先点击 WINKEY + X 组合并选择 Command Prompt (Admin) 以启动Command Prompt with Administrator Privileges。
在命令提示符(Command Prompt)命令行中导航到该可引导设备的根位置。到达那里后,输入以下内容以显示文件扩展名-
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
然后按 Enter。
也可以输入以下命令隐藏文件扩展名,
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f
5]使用组策略编辑器
您还可以使用组策略编辑器(Group Policy Editor)并在此处更改设置:
User Configuration > Preferences > Control Panel Settings > Folder Options.
设置“显示隐藏的文件和文件夹”并取消选中“隐藏已知文件类型的扩展名”。
因此,您可以将 Windows 设置为在Windows 11/10/8中显示文件扩展名。
阅读(Read):如何在 Windows 中创建没有扩展名的文件。
如何在Windows 11/10中显示文件类型扩展名?
Windows 11/10中显示文件类型扩展名或文件扩展名,您需要打开文件夹选项(Folder Options)面板并从隐藏已知文件类型的扩展名(Hide extensions for known file types )复选框中取消勾选。最后,单击OK按钮保存更改。之后,您可以找到计算机上可能拥有的所有文件的文件扩展名。
阅读:(Read:) 如何在 Windows 中打开没有扩展名的文件。
如何在Windows中查看所有文件扩展名?
Windows 11/10中查看所有文件扩展名的过程与上述相同。也就是说,您需要从“文件夹选项(Folder Options)”窗口中的“隐藏已知文件类型的扩展名”(Hide extensions for known file types )复选框中删除勾选。
如果您有什么要补充的,请通过评论与我们分享。
How to show File Extensions in Windows 11/10
File Extensіon is that which identifiеs the file type. If you are a regulаr Windows user, then it iѕ not at all a problem to identify the file type. For it is very important to see fіle extension to identify the type of file you are trying to open from a security point of view. So in this poѕt, we will sее how to hide or show File Extensions in Windows 11/10/8/7 and why you should show them.
Since file names allow you to use multiple full stops, the real name of a malware file could be realword.docx.exe. But because you have not set Windows to show file extensions, you would see only realword.docx. Thinking it’s a Word document, you could well end up clicking on it and infecting your computer. If you had, on the other hand, set your PC to show file extensions, you would see its full name – realword.docx.exe, which would help you to identify that it was actually an executable file and in all probability a malware file. This will thus help you tell if a file is malicious or not.
What are File Extensions & how are they useful
Different file types have different extensions. Audio files have .mp3, .wav, .wma, and more based on the program used to open that file. File extensions also help the operating system to identify the corresponding program to open that particular file. So, you should be able to see file extensions to be at the safer side, and we will let you know how to enable options to see file extensions in Windows.
As mentioned earlier, by default Windows does not show file extensions and they are hidden. But, you can toggle the option to see them.
Show File Extensions in Windows 11/10
There are five ways how you can go about accessing this setting:
- Through the File Explorer Options
- Through Windows Explorer Ribbon
- Using the Registry
- Using Command Prompt
- Using Group Policy Editor.
1] Through Folder or File Explorer Options
To Show File Extensions in Windows 11/10 via File Explorer Options, follow these steps:
- Open Control Panel > Appearance and Personalization.
- Now, click on Folder Options or File Explorer Option, as it is now called
- Select the View tab.
- In this tab, under Advanced Settings, you will see the option Hide extensions for known file types.
- Uncheck this option
- Click on Apply and OK.
Windows 11/10 users may also search for File Explorer Options in Start search box and open this box.
Now, you can see file extensions for all files anywhere on your Windows system.
In Windows 11/10/8.1 Explorer, you can access File Explorer Options via Explorer.
Click View > Options > Change folder and search options.
Once here, you can do the needful as explained above.
In Windows 7, open Explorer, press Alt on your keyboard to make the Classic bar appear. Next, click on Tools > Folder Options. Now follow the steps mentioned above.
These are very simple steps to follow, and you do not need any third-party software to view file extensions. Windows provides us with everything which can be easily achieved, and the point lies in knowing and implementing them. This is the first way to see file extensions in Windows 7.
2] Via Windows File Explorer
To show File name extensions in Windows 11:
- Open Explorer
- Click on View in the top menu
- Click on Show next
- Select File name extensions.
To show File name extensions in Windows 10, open Explorer and click on the View tab.
Simply select the File name extensions checkbox, and you are all set.
3] Using the Registry Editor
Hit the WINKEY + R button combination to launch the Run utility, type in regedit and hit Enter. Once Registry Editor opens, navigate to the following key-
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Look up for a DWORD entry labeled as HideFileExt.
Double click on the mentioned DWORD entry and set its value as 0. This will show up the hidden file extensions.
A value of 0 will hide the file extensions.
Exit the Registry Editor and then reboot your computer for the changes to take effect.
4] Use Windows Command Prompt
This fix can be used in both the scenarios mentioned above. Insert a bootable drive of Windows 11/10 installer.
Start by hitting the WINKEY + X combinations and select Command Prompt (Admin) to launch Command Prompt with Administrator Privileges.
Navigate to the root location of that bootable device inside the Command Prompt command line. Once you get there, type in the following to show the file extensions-
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
And then hit Enter.
You can also enter the following command to hide the file extensions,
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f
5] Using Group Policy Editor
You can also use the Group Policy Editor and change the setting here:
User Configuration > Preferences > Control Panel Settings > Folder Options.
Set “Show hidden files and folders” and uncheck “Hide extensions for known file types”.
Thus, you can set your Windows to show file extensions in Windows 11/10/8.
Read: How to create a file without an Extension in Windows.
How do I show file type extensions in Windows 11/10?
To show the file type extension or file extension in Windows 11/10, you need to open the Folder Options panel and remove the tick from the Hide extensions for known file types checkbox. At last, click the OK button to save the change. After that, you can find the file extensions of all the files you may have on your computer.
Read: How to open a file with no extension in Windows.
How do I see all file extensions in Windows?
The process to see all file extensions in Windows 11/10 is the same as the above one. That said, you need to remove the tick from the Hide extensions for known file types checkbox in the Folder Options window.
If you have anything to add, please do share it with us through comments.