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

Page 3 of 3 FirstFirst 123

  1. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
       #21

    Hello M18XR2,

    Unfortunately, they are tied together.

    To be able to show hidden protected OS files, you must also show hidden files....

    Hidden Files and Folders - Show or Hide
      My Computer


  2. Posts : 2
    Windows 11 (x64)
       #22

    A detailed answer to this thread. :D


    If you want to create a protected operating system folder, run an elevated command prompt and type this command into it:

    attrib.exe +s +h "Full folder path" /S /D
    (Include the quotation marks if the target path has spaces)

    If you want to apply this to all the subdirectories and files as well, then type these 2 commands:

    attrib.exe +s +h "Full folder path" /S /D
    attrib.exe +s +h "Full folder path\*.*" /S /D

    If you want to undo this action then replace the "+s +h" with "-s -h"

    I hope this helped!
      My Computer


 
Page 3 of 3 FirstFirst 123

  Related Discussions
Our Sites
Site Links
About Us
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
All times are GMT -5. The time now is 05:44.
Find Us