[Tip] How to Show File Extensions of Shortcuts (LNK, URL, PIF) in Windows Explorer?
By default all Windows versions such as Windows XP, Vista, Windows 7 or Windows 8 don't show file extensions for known file types such as exe, mp3, txt, doc, avi, etc. It is done to make user experience easier so that the user doesn't get confused by various file extensions. But Windows allows you to show these hidden file extensions. You can enable this feature using Folder Options. Just disable "Hide extensions for known file types" option in Folder Options.
Once you disable the option, Windows will start showing almost all file extensions and you'll be able to distinguish between different file types. In my opinion this feature should come enabled by default as it might be a big security risk. Its very easy to mask an EXE file as TXT or any other filetype by renaming the file to filename.txt.exe. If Windows is set to hide file extensions, you'll see the file name as filename.txt and you'll never know that the file is actually an executable. As soon as you open the txt file, it'll execute the exe file and the file will spread the virus in your computer.
That's why its always advisable to show all file extensions in Windows. But even if you ask Windows to show all file extensions by disabling the above mentioned option in Folder Options, there are still a few system reserved file extensions which are not shown in Windows Explorer. These file extensions include LNK (file shortcuts), URL (Internet shortcuts), PIF (DOS shortcuts), etc.
Actually Windows uses a built-in Registry key to hide these file extensions. This Registry key is called "NeverShowExt". If you set this key for any desired file extension in Registry Editor, that file extension will never be shown in Windows Explorer.
Following is a list of some popular super hidden file extensions which are set to never show in Windows Explorer:
- LNK (File/Folder Shortcut)
- URL (Internet Shortcut)
- PIF (MS-DOS Program Shortcut)
- SCF (Windows Explorer Command)
- SHS (Shell Scrap Object)
- SHB (Document Shortcut)
- XNK (Exchange Folder Shortcut)
All above mentioned file types contain the NeverShowExt string in Windows Registry which automatically hides their extension in Windows Explorer irrespective of the folder option to show file extensions is on or off.
Again its a big security risk. Anyone can create a scrap object or any other malicious program and rename it to filename.txt.shs. Obviously Windows will not show .shs extension and you'll see the filename as filename.txt. You'll open the txt file and it'll actually spread the virus in your computer.
So what's the solution? How to show all file extensions including these super hidden file extensions in Windows? Here is the answer!
You just need to delete NeverShowExt string present in Windows Registry for all those super hidden file types and you'll be able to see all file extensions in Windows.
So if you want to improve your computer security and if you want to show all file extensions in Windows, check out following simple steps:
1. Press WIN+R keys to launch RUN dialog box. Type regedit and press Enter. It'll open Registry Editor.
2. Now go to Edit -> Find or press Ctrl+F keys together. It'll open find dialog box.
3. Type NeverShowExt in find text box and press Enter. It'll start searching for the string and will show the first occurrence of the string.
You'll find several occurrence of NeverShowExt string in Registry but delete the string only for desired keys. Be very careful while deleting the string. You might find the string in a few other file types as well such as account picture, library, etc.
Take a backup of the key before deleting NeverShowExt string. Right-click on the key and select Export option to take the backup.
4. Now select NeverShowExt string present in right-side pane and press Delete key to delete it. Press F3 key and it'll search for the next occurrence of NeverShowExt string. Again delete the string and repeat the same process until you get "Finished searching through the registry" message.
5. That's it. Once you finish deleting the NeverShowExt string from registry, restart Windows and now Windows will always show all file extensions in Explorer.
NOTE: As usual we are also providing a ready-made Registry script to automatically remove the NeverShowExt string from Registry for above mentioned super hidden file extensions. Just download following ZIP file, extract it and run extracted REG file. It'll ask for confirmation, accept it:
Restart your system and Windows will show all file extensions in Explorer.
Other similar articles that may interest you
- Registry Tweak to Disable Start Screen for All Applications in Microsoft Office 2013
- Windows 10 Creators Update (RS2) Changelog
- Get New Windows 8 Metro Start ORB (Start Button) in Windows 7
- How to Change Download Folder Location in Your Favorite Web Browser?
- How to Hide / Show Specific Control Panel Applets / Icons in Windows?
- Beginner’s Guide to Safely Configure / Disable Windows XP Services