Skip to content
Old Character edited this page Sep 21, 2026 · 6 revisions

Windows Hidden Extension Toggle

This wiki documents Windows Hidden Extension Toggle, a lightweight batch-based utility designed to make normally hidden file extensions visible in Windows File Explorer.

The project targets a specific Windows behavior: some registered file types keep their extension hidden even when Hide extensions for known file types is disabled in Explorer.

This is particularly relevant for shortcut-based files such as .lnk, which can otherwise appear visually similar to harmless files while actually being shortcuts to another location or executable. Microsoft documents that .lnk is handled specially by Explorer through the NeverShowExt registry value.

Features

The script provides an interactive menu with two actions:

  • Show hidden extensions
  • Hide hidden extensions

In addition to the special extension classes, the script also updates the standard Explorer visibility settings:

Registry value Show mode Hide mode
Hidden 1 0
HideFileExt 0 1
ShowSuperHidden 1 0

The script then restarts explorer.exe so the changes are immediately reflected in File Explorer.

Available scripts

ShowHiddenExtensions.bat

The standard version handles the main set of hidden extensions supported by the project.

ShowHiddenExtensions-extended.bat

The extended version additionally attempts to process several CLSID-based registry entries used by legacy or special Windows file types. The extended implementation currently requires further work for the system-level entries.

Requirements

-Windows

  • Administrator privileges
  • Windows 11 is the current tested target

The extended script additionally targets registry entries requiring stronger system-level access, but this part is currently not fully implemented.

Usage

  1. Download the desired .bat script from the repository.
  2. Run it as administrator.
  3. Select:
  • 1 to show hidden extensions
  • 2 to hide hidden extensions
  • 3 to exit
  1. The script applies the registry changes and restarts Windows Explorer.

Why?

Showing file extensions does not prevent malicious files from existing, but it makes filenames less ambiguous.

For example:

invoice.pdf

is visually different from:

invoice.pdf.lnk

when the .lnk extension is visible.

This is especially useful because Windows normally hides the .lnk extension independently of the general Explorer extension setting.

Project scope

This project is intended as a small utility/helper for Windows configuration.

It does not attempt to replace antivirus software or provide malware detection. Its purpose is to make file types and extensions more explicit to the user.

Clone this wiki locally