Windows 7 Forums


Windows 7: How Do You Create a "Protected Operating System File"?

08 Dec 2009   #1

Windows 7 RC (Build 7100)
Madison, AL
 
 
How Do You Create a "Protected Operating System File"?

Hey all,

This is a weird question, but I've been trying to figure out how to CREATE a "protected operating system file/folder." For example, "desktop.ini" is one.



My story is that I accidentally deleted a junction (the C:\Documents and Settings junction which maps to C:\Users for backwards compatibility). I created a new one using the command-line mklink tool, but the folder is not marked as a "protected operating system file", so when I turn the option on to hide those, it still shows up.

The only thing I can find online that is special about these files is that they have the System and Hidden attributes both turned on. I have turned these on, but it still shows up, so there seems to be another flag behind the scenes that marks files as "protected" files.

Any search turns up a million tutorials for how to go into the Folder Options GUI and turn on/off the "show..." option. Does anyone know how to do this? Let me know if I need to elucidate.
My System SpecsSystem Spec

08 Dec 2009   #2

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Jim,

You might see if using this command in a elevated command prompt, then restart the computer may work. It should make it a hidden system file.

attrib +s +h full folder path /S /D

or

attrib +s +h full folder path /S /D /L

Hope this helps some,
Shawn
My System SpecsSystem Spec
08 Dec 2009   #3

Windows 7 RC (Build 7100)
Madison, AL
 
 

Ah! Got it! It was the /L. It must've been setting the properties of Users instead of Docs and Settings every time I used +h +s. Thanks for the help; I was really scratching my head about it.
My System SpecsSystem Spec
.


08 Dec 2009   #4

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

You're most welcome.
My System SpecsSystem Spec
23 Jun 2012   #5

Windows 7 Home Premium 64 Bit
 
 

So how would you do the reverse, make a "protected operating system file" unprotected so it shows up as normal?
I have some mp3's that for some reason are not showing up in my music folder until I uncheck the "Hide protected operating system files" box.
Any suggestions?
My System SpecsSystem Spec
23 Jun 2012   #6

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello grande007, and welcome to Seven Forums.

You can use the command below in a elevated command prompt to do so.

attrib -S -H "Full Path of File with extension"

Hope this helps,
Shawn
My System SpecsSystem Spec
Reply

 How Do You Create a "Protected Operating System File"? problems?



Thread Tools



Similar help and support threads for: How Do You Create a "Protected Operating System File"?
Thread Forum
"Splitting" 40 Gb user file system into ten 4 Gb "chunks" Backup and Restore
Solved Win7 pro startup error "Boot MGR missing"/"Operating System Not Found Installation & Setup
Why isn't "copy protected" WTV usable after system image restore? Media Center
Unable to boot following BSOD: "Loading operating system" hang BSOD Help and Support
system cold boot hangs at "loading operating system" BSOD Help and Support


All times are GMT -5. The time now is 09:00 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32