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.