Forum Home
Press F1
 
Thread ID: 23735 2002-08-24 00:51:00 Shortcut to Show/Hide Files Jester (13) Press F1
Post ID Timestamp Content User
73494 2002-08-24 00:51:00 Hiya

Can anyone suggest a shortcut key or batch file that will turn on or off the "show hidden or system files" attribute?

At the moment I open explorer, go to tools, folder options, view, and either click show all files, then repeat the procedure to hide hidden or system files, but this is long-winded and wonder if I could use a desktop or keyboard shortcut.

Using Win98SE.

Thanks

:D
J.
Jester (13)
73495 2002-08-24 02:45:00 I don't know if you can toggle the diplay property, but you can toggle whethre the files are hidden or not.

From the command prompt:

To remove hidden attribute

C:\>attrib -h "path"

To add hidden attribute

C:\>attrib +h "path"

I don't think this is what you want though is it?

G P
Graham Petrie (449)
73496 2002-08-24 03:53:00 why bother at all???

no1 sircuity feature is to show all files.
tweak'e (174)
73497 2002-08-24 03:58:00 ... and extensions, so you see .bmp.exe etc.

I have hide.bat and unhide.bat to do GP's trick. I like to have the C:\ directory appearing empty on DOS machines. It also protects against accidental file deletions. (I have the BIOS setup program on my old laptop hidden -- it's there, but can't be deleted).
Graham L (2)
73498 2002-08-24 04:07:00 It would not be easy to do. As far as I can see you would need to make a .reg file or a script file to modify the registry settings at:
HKEY_LOCAL_MACHINE\software\microsoft\windows\curr entversion\explorer\advanced\folder\
and in that last folder key are the sub keys for the settings you want.

As Tweak'e says, is it worth it?

The Start button gives very slightly faster access to Folder Options.
Terry Porritt (14)
73499 2002-08-24 04:08:00 Thanks for the suggestions so far.

I have the file extensions showing, but there are files and folders that I set as hidden, mainly so the kids don't mess with them, word docs, a favourites folder, shortcuts to some games they aren't to play without supervision .. that sort of thing. I am not after password protection or anything like that.

I also prefer to have system and hidden files stay hidden when they are on the PC, and have never had an issue as far as security goes.

Basically I want a quicker way to show hidden files and folders, thanks

:D
J.
Jester (13)
73500 2002-08-24 04:15:00 Thanks Terry - I hadn't seen the folder options icon under Start/Settings before.

I have a Control Panel Icon on my Quick Launch Bar ... now, if I remember what I did to get the control panel icon there (doesn't drag off the the settings menu), I could get the Folder Options Icon there too ....
Jester (13)
73501 2002-08-24 04:15:00 What about a batch file which has the appropriate options to show the hidden/system ones. (check with "dir/?" to see the options). I know this does not allow you to click on things once you have found them. I suspect that MS don't want life to be easy ;-) --- you are wanting to do something which they, in their wisdom, don't think is needed. Graham L (2)
73502 2002-08-24 04:45:00 The easiest way to do this is IMO, to create to reg files.
The first setting the option to show all files (then export it to a file).
The second setting the option to hide all files(then export this to a file.

Of course you then have to rely on your kids not to execute these programs. It does work however, I use this at work to disable/enable my proxy settings.

I can't remember which registy setting is involved in this however Terry seems to have it right ;-)
BarryMcQ (1578)
73503 2002-08-24 05:05:00 If it wasnt for the kids, Barrys suggestion would be ideal, you could have shortcuts to the reg files, one for 'on' and one for 'off'. What ever you do the kids will find a way round it :) Terry Porritt (14)
1 2