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
200 characters left
Include your email address to get a message when this question is answered.
Submit
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

You Might Also Like

Write a Batch FileWrite a Batch File
Shut Down Your PC with a Shortcut Key6 Easy Ways to Use Shortcut Keys to Shut Down a Windows PC
Check Mouse Sensitivity (Dpi) on PC or Mac Check Your Mouse DPI on Windows & Mac
Change Your Desktop Background in Windows5 Quick Ways to Change Your Desktop Wallpaper on Windows
Bring an Off Screen Window Back on WindowsBring an Off Screen Window Back on Windows
Make a Zip File6 Simple Ways to Create a .ZIP File from Files or Folders
Copy and Paste Copy and Paste on Any Device
Paste with the Keyboard4 Easy Ways to Paste Text Using Keyboard Shortcuts
Automatically Shut Down Your Computer at a Specified TimeAutomatically Shut Down Your Computer at a Specified Time
Change a File ExtensionChange a File Extension
Blender How to Merge Objects3 Easy Ways to Merge Objects in Blender: Step-by-Step
Change the Icon for an Exe File3 Easy Ways to Customize EXE Program Icons in Windows
Copy and Paste a LinkCopy and Paste a Link
Refresh a PageHow To Refresh a Webpage: Desktop & Mobile
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 11 people, some anonymous, worked to edit and improve it over time. This article has been viewed 138,991 times.
How helpful is this?
Co-authors: 11
Updated: August 31, 2023
Views: 138,991
Categories: Basic Computer Skills
Thanks to all authors for creating a page that has been read 138,991 times.

Is this article up to date?

Advertisement