How to mark files as read-only in Windows?

Published on Aug. 22, 2023, 12:18 p.m.

To mark files as read-only in Windows, follow these steps:

  1. Right-click on the file you want to mark as read-only and select “Properties.”
  2. In the Properties window, go to the “General” tab.
  3. Check the box next to “Read-only” under the “Attributes” section.
  4. Click on “Apply” and then “OK” to apply the changes.

Note: If the “Read-only” checkbox is shaded in gray, it means that the file inherits its permissions from a parent folder. You can modify the permissions of the parent folder to change the file’s read-only status.

Alternatively, you can also mark multiple files as read-only using the command prompt. Open a command prompt window and navigate to the folder containing the files you want to modify. Use the following command to mark all the files in the folder as read-only:

attrib +R *

This command will mark all files in the folder as read-only. To remove the read-only attribute, use the following command:

attrib -R *

These commands will modify the read-only status of all the files in the folder, so use them with caution.

Tags: