📜 VBScript (WSH)
Check "Show Hidden Files" Status (VBScript)
Reads the registry value behind the "Show Hidden Files" tweak to confirm whether it's applied.
CheckShowHiddenFilesGlobalStatus.vbs
' ============================================================
' CheckShowHiddenFilesGlobalStatus.vbs
'
' Checks whether "Show Hidden Files" is currently applied.
'
' Usage: cscript CheckShowHiddenFilesGlobalStatus.vbs
' ============================================================
Option Explicit
Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden")
If Err.Number <> 0 Then
WScript.Echo "'Hidden' is not set (using the Windows default)."
Else
WScript.Echo "Current value of 'Hidden': " & currentValue
End If
On Error Goto 0