Hidden files & folders

  • Thread starter Thread starter jel183\(UK\)
  • Start date Start date
J

jel183\(UK\)

Can someone tell me the shortcut path for 'show hidden files and folders' &
'do not show hidden files and folders'. I know the folder | tool | folder
options route, but I want to shortcut this on the desktop...
 
If you save the following as a .vbs (script) file, you can use it to toggle the hidden view. There
does seem to be a slight delay before explorer 'knows' its settings have changed.

----------------------------------------------------------------
Set WSHShell = WScript.CreateObject("WScript.Shell")
v1 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden"
v2 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden"

n1 = WSHShell.RegRead (v1)
n2 = WSHShell.RegRead (v2)

n1 = n1 Xor &H03
n2 = n2 Xor &H01

WSHShell.RegWrite v1, n1, "REG_DWORD"
WSHShell.RegWrite v2, n2, "REG_DWORD"
 
Thanks for the reply but I wouldn't know where to start as regard saving as
a .vbs file :-(
 
Just a text file with a different extension. Copy the text into notepad and save as "toggle
hidden.vbs". Make sure the folder view option of hiding extensions is turned off or you may end up
with "toggle hidden.vbs.txt". Then just double-click the file to run it.

Also, watch out for line-wrapping in these messages. The script should look like this:

v1 = "HKEY_CURRENT_USER...
v2 = "HKEY_CURRENT_USER...

n1 = WSHShell.RegRead (v1)
n2 = WSHShell.RegRead (v2)

n1 = n1 Xor &H03
n2 = n2 Xor &H01

WSHShell.RegWrite v1, n1, "REG_DWORD"
WSHShell.RegWrite v2, n2, "REG_DWORD"

Keith
 
Back
Top