Hidden files & folders

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...
 
W

Wesley Vogel

Start | Settings | Control Panel | Right click: Folder Options |
Create shortcut
 
K

Keith Miller

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"
 
J

jel183\(UK\)

Thanks for the reply but I wouldn't know where to start as regard saving as
a .vbs file :-(
 
K

Keith Miller

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top