Of Zen and Computing

How to Remove Read-Only From All Files in a Folder

Digg icon StumbleUpon icon del.icio.us icon Facebook icon

After copying a batch of files to your Windows PC from a CD or DVD, you may discover that all the copied files carry the read-only flag. The most obvious way to remove the read-only flag from a file is to right-click on its icon, choose “Properties”, and uncheck the “Read-only” box. But what if you have hundreds, or even thousands of files marked read-only?

You can batch-remove the read-only flag from multiple files using the attrib command from a command prompt. The Windows Command Line site has a tutorial on commands everyone can use, which includes an explanation of performing this task with the attrib command. The section on the attrib command is titled “Changing file attributes with ‘attrib’”, and is located about three quarters of the way down the page.

In short, you can remove the read-only flag from a group of files by navigating to their folder from a command prompt and typing attrib -r ./*.* /s. I did this to a folder full of image files with attrib -r ./*.jpg /s.

Bring up a command prompt in Windows XP by clicking Start → Run, typing “cmd”, and pressing “OK”. In Windows Vista, click Start, type “cmd”, and press the Enter key.

File under: Files & Folders

Other articles related to this page

2 responses

  1. As long as you are using the keyboard… While looking at the files and folders in explorer,
    Ctrl-A, Alt-Enter, Alt-R (repeat until Read Only Checkbox is unchecked), Enter, Enter.

  2. Thank you …. thank you … thank you

Leave a Comment

RSS Feed Icon comment feed