We can mark a file as read-only from the command line too. Command for this is given below.
attrib +R filename
Example:
attrib +R example.doc
The above command will set the read only attribute for the file file.doc and user will not be able to do modifications to the file.
To check if a file has read only attribute set, you can check by running attrib command on the file.
attrib filename
Example:
D:data> attrib example.doc A R D:dataexample.doc
Recursively set read-only attribute for all files in the directory
attrib /S +R
Adding users from command line is much easier than going through the UI. It saves…
Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…
We can kill a process from GUI using Task manager. If you want to do…
Chrome is definitely the stable browser compared to other ones and it has been my…
Windows has multiple command line utilities that can help find the version of the Windows…
There are multiple ways to check whether a Windows computer is running 32-bit OS or…
View Comments
Nice. Thanks.
Forgot to mention. This is a good alternative to dowloading those free utilities to get read only files onto the Pocket PC.