# Windows – Enable/disable the “Show hidden files” setting from the command line

command linewindowswindows 7windows-explorer

In Windows Explorer, the setting Show hidden files, folders and drives can be enabled and disabled under Organise > Folder and search options > View.

Is there another, quicker way to enable/disable this setting? Something via the command line would be ideal, but I'm open to all suggestions that are quicker or less cumbersome.

These settings are in the Registry at this key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced


To show hidden items, set Hidden to 1 (to hide them, set it to 2). To show system/super-hidden items, set ShowSuperHidden to 1 (0 to hide). Since we're fiddling with the Registry directly, Explorer has to be restarted.

To accomplish all of that and enable viewing of everything, you can use these batch commands:

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1 /f

taskkill /im explorer.exe /f

If Explorer doesn't automatically relaunch on your system, simply run explorer to get your taskbar back.