cmd script to hide/show hidden files

Posted: 12-08-2003, 05:08 PM
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!

cmd script to hide/show hidden files


Responses to "cmd script to hide/show hidden files"

Curtis Clay III [MSFT]
Guest
Posts: n/a
 
RE: cmd script to hide/show hidden files
Posted: 12-09-2003, 02:51 PM
Hello Ed,
Have a look at the following link...

http://www.microsoft.com/technet/tre...hnet/scriptcen
ter/filefolder/ScrFF03.asp

Also the Script Center has tens of thousands of examples.

This posting is provided "AS IS" with no warranties, and confers no rights.







Torgeir Bakken (MVP)
Guest
Posts: n/a
 
Re: cmd script to hide/show hidden files
Posted: 12-09-2003, 07:21 PM
"Curtis Clay III [MSFT]" wrote:
> Hello Ed,
> Have a look at the following link...
>
> http://www.microsoft.com/technet/tre...hnet/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...



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Torgeir Bakken (MVP)
Guest
Posts: n/a
 
Re: cmd script to hide/show hidden files
Posted: 12-10-2003, 12:47 AM
Ed wrote:
> 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\Curre ntVersion\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...

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Roger Abell
Guest
Posts: n/a
 
Re: cmd script to hide/show hidden files
Posted: 12-10-2003, 06:06 AM
Don't we all love the reg_binary values ;-(

--
Roger
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:3FD620AD.6DA67445@hydro.com...
> "Curtis Clay III [MSFT]" wrote:
>
> > Hello Ed,
> > Have a look at the following link...
> >
> >
http://www.microsoft.com/technet/tre...hnet/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...
>
>
>
> --
> torgeir
> Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of the 1328 page
> Scripting Guide: http://www.microsoft.com/technet/scriptcenter
>
>

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show hidden files ?? Randall Windows Vista File Management 5 05-06-2008 07:35 PM
Files Remain Hidden Even though I selected show Hidden & Protected LabTechnician Windows Vista File Management 11 03-02-2008 10:08 AM
Hide hidden files - but just on the desktop? boe Windows Vista Install & Setup 3 02-06-2007 04:55 AM
HotKey to toggle Show/Hide Hidden Files??? Calvin Customize Windows XP 4 03-02-2004 09:12 PM
Show Hidden Files Problem Martyn Windows XP Help & Support 0 12-02-2003 08:52 PM