Skip to content

Instantly share code, notes, and snippets.

@mislavjakopovic
Created May 28, 2017 22:14
Show Gist options
  • Save mislavjakopovic/1ef5f7d060f76d8316b8e0be00202368 to your computer and use it in GitHub Desktop.
Save mislavjakopovic/1ef5f7d060f76d8316b8e0be00202368 to your computer and use it in GitHub Desktop.
REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden | Find "0x0"
IF %ERRORLEVEL% == 1 goto turnoff
If %ERRORLEVEL% == 0 goto turnon
goto end
:turnon
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t REG_DWORD /d 1 /f
goto end
:turnoff
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t REG_DWORD /d 0 /f
goto end
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment