PDF download Download Article PDF download Download Article

Making a file Read-only is an effective way to protect it from an unwanted edit or deletion. This wikiHow guide can help you get started.

Method 1
Method 1 of 2:

GUI Method

PDF download Download Article
  1. Advertisement
  2. Advertisement
Method 2
Method 2 of 2:

Command Prompt Method

PDF download Download Article
  1. You can open it by clicking on Start->Run , then type cmd and hit Enter . You can also press Win Key+R .
    • attrib +r "<file path="">"</file>
    • Example: attrib +r "D:\wikiHow.txt"
  2. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      • Making a file Read-only helps you in many ways.
        • It prompts when you try to change that file name.
        • It prompts when you try to delete it.
      • To remove Read-only from a file
        • In GUI method, just deselect that Read-only check box.
        • In command prompt method, write that code with -r instead of +r .
          Example: attrib -r "D:\wikiHow.txt"
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 138,991 times.

      Is this article up to date?

      Advertisement