Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING

Full Version: How to change file attributes in Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
First,
Open the Command Prompt by entering cmd in the Start menu.
Then right-click the cmd.exe and select Run as administrator from the context menu.
That will open the Command Prompt window.


To edit file attributes
You should enter attrib followed by some basic switches and then the path of the file.
The three basic attrib switches are R, H and A.
R assigns the Read-only attribute.
H assigns the Hidden attriband.
A prepares a file for archiving.

To select Read-only for a file, enter attrib+r [path] and press Return.
You should enter the exact path of the file at the end of the line.
So the line could be something like:
attrib+r C:\Users\red\Documents\access.odt.

Then right-click the file you selected the attribute for and select Properties.
The Read-only check box on that window will then be selected.

You can select the Hidden attribute on the Properties window much the same with the Command Prompt.
Just enter attrib+h[path]and press the Return key.
Then you’ll find the Hidden check box selected on the file’s Properties window.

To select the File is ready for archiving attribute option, you must input the +a switch.
As such, enter attrib+a [path]and press Return.
That will then select the File is ready for archiving option.

You can also deactivate those attribute options from the Command Prompt. Instead of entering +a or +h, replace the + with a -.
So you would enter-a or-h to deactivate the specified attribute.