🖥️ Batch (CMD)

Check "Show Hidden Files" Status (Batch)

Uses reg query to check the current value behind the "Show Hidden Files" tweak.

By WindowsScripting.com · 451 B
CheckShowHiddenFilesGlobalStatus.bat
@echo off
:: ============================================================
:: CheckShowHiddenFilesGlobalStatus.bat
::
:: Checks whether "Show Hidden Files" is currently applied.
:: ============================================================

reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" 2>nul

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo 'Hidden' is not set (using the Windows default^).
)
pause