Question with hidden folders

Th3Art0fRu1n

Distinguished
Dec 7, 2009
23
0
18,520
Would it be possible to be able to enable/disable hidden files and folders with a batch file or something similar?
I unhide my hidden folders often make changes to them, but have to go to folder options > show hidden files and folders.

Would there be a way to just click on something (batch file or something similar) to hide or show the hidden folders without having to go to Folder Options, etc?

I've done a lot of searching (Google, etc.) and can't seem to find anything at all. If this is in the incorrect place I apologize.

Any help would be appreciated.
 
I leave them off when I give the computer to those who can barely surf the net. My own computer always has them on, and I don't hide the file extensions either. I know what I'm doing, don't hide $h!7 on me!

Perhaps he has someone using his computer who doesn't understand?
 
You'd have to update the Registry to change the settings in Explorer, but it's easy to change the files and folders themselves to hidden or non-hidden. For example, to change the "D:\Data" folder and all its contents to hidden, use:

attrib +h D:\Data
attrib +h D:\Data\* /s

To change them to not hidden, use:

attrib -h D:\Data
attrib -h D:\Data\* /s