Protected Operating System folder change

One of our main Data folders somehow has been changed so it will only show up if "Hide protected operating system files" is unchecked.  Is there any way to change it back?
LVL 6
Michael SAsked:
Who is Participating?
 
theras2000Connect With a Mentor Commented:
Oh my apologies.  It seems that the folder must be marked as hidden + system, before your checkbox will hide it.  So type 'attrib -s data' to undo that.  Then type 'attrib +s +h data'.
You have to add both attributes at the same time, so the first bit must be undone beforehand.
I've tested it and it's working for me now by using your checkbox.
0
 
LeeTutorretiredCommented:
Have you tried going to a CMD prompt, changing directory to the parent directory of your system folder, then using the ATTRIB command to turn off the S (System) attribute?  You will need to be an Administrator, you might need to use Run as Administrator option for the CMD.EXE.  Don't know how much of a "guru" you are on DOS commands, but you change directory with the CD command.  You can get the syntax of the CD and the ATTRIB commands by typing each one with a /? option, e.g.,   CD /?
0
 
theras2000Commented:
That means they've got the 'System' attribute enabled - it's what makes that checkbox show or hide them.  The DOS attrib command will help you, but let me find exactly how to use that on a whole folder.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
theras2000Commented:
Ahh here we go.  If your Data folder is in C:, liek C:\Data, then open a DOS command prompt to C:\.
Now just type 'attrib +s data'.  Done.
0
 
LeeTutorretiredCommented:
It is not ATTRIB +S DATA, that turns ON the System Attribute. Use a minus sign instead of a plus sign...
0
 
Michael SAuthor Commented:
I didn't even think about the command prompt, I was thinking of some Windows setting.  But I did that and it worked, so that works for me...thanks.
0
 
LeeTutorretiredCommented:
I wonder why you didn't split the points, since I was the first expert to suggest it, and I even corrected one of the comments by theras2000...
0
 
Michael SAuthor Commented:
Because I was in a hurry.
0
 
theras2000Commented:
Gee what a schmuck I was; sorry Jay.  I was so focussed on trying to turn it on that I forgot you were looking to turn it off.  Anyway it sounds like you realised that you needed to use minuses instead of pluses in my syntax.
0
 
umaiir2000Commented:
just a little bit change in the theras2000: answer
type 'attrib -s -h data'. to unhide the folder and to unmark it as a system file.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.