cmd script to hide/show hidden files

E

Ed

Anyone know if it's possible to create a command line
script/command to hide/show hidden files and folders that
already have the hidden attribute? You know, instead of
using windows explorer or my computer (Tools > Folder
Options > View Tab > Show/Do not show hidden files and
folders). Thanks!
 
T

Torgeir Bakken (MVP)

Curtis Clay III said:
Hello Ed,
Have a look at the following link...

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcen
ter/filefolder/ScrFF03.asp

Hi

The OP did not want to change the attribute of files/folders, so that script is
not relevant. The OP wanted to have a script that changes how Windows Explorer
handles the viewing of hidden files and folders, and as that setting is "hidden"
into a binary structure in registry if I am not mistaken, I know of no easy way
to do that with a script...
 
T

Torgeir Bakken (MVP)

Ed said:
Anyone know if it's possible to create a command line
script/command to hide/show hidden files and folders that
already have the hidden attribute? You know, instead of
using windows explorer or my computer (Tools > Folder
Options > View Tab > Show/Do not show hidden files and
folders). Thanks!

Hi

Set the value "Hidden" (type REG_DWORD) to 1 under the key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

This can be done using e.g. a registry file, you can import it silently with
regedit.exe /s "some reg file"

or you can use reg.exe and it's ADD method to create/edit this value, run
reg.exe /? in a command prompt for help...
 

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