How to get Windows to show only certain file name extensions

Source: Internet
Author: User

Windows Explorer has an option to show or hide the file name extension. If you choose to display an extension, once your mailbox receives a malicious file such as "Picture. Jpg.exe", the full extension name makes the trick of such a file invisible; If you hide the extension, "picture. Jpg.exe" will appear as "picture. jpg", which is easily fooled. On the other hand, it always appears that the extensions for all files appear to be untidy and increase the risk of unintentionally changing file types. The ideal scenario is to show only some file extensions that may imply risks, while hiding the extensions for the rest of the files.

First, you force the extension of the exe file to appear. Open Registry Editor and find Exefile (not. exe) in "HKEY_CLASSES_ROOT". Select the registration key, press the right mouse button in the right pane of the Registry Editor, select New → string value, set the name of the value Alwaysshowext, and then close the Registry Editor.

After modifying this registration key, the exe file extension is always explicitly displayed, whether in the Explorer or other software, even if you have selected the "Hide extensions for known file types" option.

To maximize security, it is recommended that you repeat these steps for the following registry key in "HKEY_CLASSES_ROOT": Cmdfile, Comfile (Windows 2000/xp only), Batfile, and Scrfile. If you are concerned about someone sending you malicious script files, you can also add Alwaysshowext values for the following registry keys: Jsfile, Jsefile, Vbefile, Vbsfile, and Wsffile.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.