Hidden Files Shortcut ?

M

Malescot

Hi everybody,

For several reasons, I often change the setting "show / hide hidden files".
I am looking for a way to change this setting in just one click. I searched
th Internet, and found a .vbs file that NEARLY does this job.

I say NEARLY because here is what I have to do for it to work :

1. double click on it
2. right click on my desktop (and desktop only, otherwise it won't work) and
select "actualize" (translation from French).
3. Launch explorer or My computer to be able to browse hidden files and
folders.

If I jump step n°2, it doesn't work. Here are the details of the .vbs file :

"On Error Resume Next
Set WSHShell=Wscript.CreateObject("Wscript.Shell")

X =
WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden")

If X = "1" Then
WshShell.RegWrite
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden",
"2", "REG_DWORD"
Elseif X = "2" Then
WshShell.RegWrite
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden",
"1", "REG_DWORD"
End If

Set WshShell = Nothing"

Any help will be greatly appreciated, if anybody knows a change I could make
in this .vbs file so that I can skip step n°2. Thanks a lot,

MALESCOT.
 
D

Drew Tognola

Malescot,

If you expand your Control Panel in the Start Menu you can cut it down to 2
clicks by going into CP > Folder Options (1st click) > View (2nd click),
then check or uncheck 'Hidden Files/Folders...'. Can you live with the extra
click? right-click 'Start' > Properties > Classic Menu 'Customize' > check
'expand Control Panel. Good Luck.

Drew
 
M

Malescot

Drew said:
Malescot,

If you expand your Control Panel in the Start Menu you can cut it
down to 2 clicks by going into CP > Folder Options (1st click) > View
(2nd click), then check or uncheck 'Hidden Files/Folders...'. Can you
live with the extra click? right-click 'Start' > Properties > Classic
Menu 'Customize' > check 'expand Control Panel. Good Luck.

Drew

Thank you Drew. Of course I can live with that ;-) !!!! I only wondered
wether some people on this forum were computer literate enough to make the
..vbs file work in just one click. But it's not a matter of life !

MALESCOT.
 
R

Ron Sommer

Try using a reg file instead of vbs.
Actually I would make two files, hide and show (rosser and exposer).
Copy and paste into Notepad and place the name in quotes, "hide.reg" or
"show.reg"
Clicking on either file will bring up a window, click Yes or hit Enter.

Copy below and save as a hide.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001

Copy below and save as show.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000002
 
T

Torgeir Bakken \(MVP\)

Malescot said:
For several reasons, I often change the setting "show / hide hidden
files". I am looking for a way to change this setting in just one click.
I searched th Internet, and found a .vbs file that NEARLY does this job.

I say NEARLY because here is what I have to do for it to work :

1. double click on it
2. right click on my desktop (and desktop only, otherwise it won't work)
and select "actualize" (translation from French).
3. Launch explorer or My computer to be able to browse hidden files and
folders.

If I jump step n°2, it doesn't work. Here are the details of the .vbs
file :
(snip)
Hi

Fyi, microsoft.public.scripting.wsh is a better newsgroup for scripting
questions.

You could try the "refresh" code here:

http://groups.google.com/groups?selm=#[email protected]
 
M

Malescot

Ron said:
Try using a reg file instead of vbs.
Actually I would make two files, hide and show (rosser and exposer).
Copy and paste into Notepad and place the name in quotes, "hide.reg"
or "show.reg"

Thank you ! Good idea indeed... but it doesn't work. I don't know why. Have
you tested on your system ?

Have a good night,

MALESCOT.
 
D

David Candy

You said it's Actualize (not actually an English word). Someone has guessed you mean refresh. They told you how to do a refresh. So it won't work if actualise (which is how it would be spelt in English) means something other than Refresh.
 
R

Ron Sommer

Malescot said:
Thank you ! Good idea indeed... but it doesn't work. I don't know why.
Have you tested on your system ?

Have a good night,

MALESCOT.
Yes, it worked for me.
Your path showed HKCU and mine showed HKEY_CURRENT_USER

Start, Run, regedit, Enter.
Navigate to
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden
Left click on Hidden.
File, Export, (if the dword value is 1, name the export hide)
Go to the exported file, right click, edit.
You can remove all key values except hidden.
 
M

Malescot

Ron said:
Start, Run, regedit, Enter.
Navigate to
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden
Left click on Hidden.
File, Export, (if the dword value is 1, name the export hide)
Go to the exported file, right click, edit.
You can remove all key values except hidden.

Thanks for your advice. It works for me also now. But I still have to right
click on the desktop and click "refresh" so that hidden documents appear
when I launch explorer. Is it the same for you ?

Many thanks again,

MALESCOT.
 

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