Context Menu

How to add File Attributes options to Context menu in Windows 10

How to add File Attributes options to Context menu in Windows 10

Sometimes you might receive an error while trying to change and save the contents of a Read-only text file and you never realize it until the text editor itself reminds you that you don't have permissions to edit the file contents. During such instances, you might wonder, how does Windows 10/8/7 differentiate between a system file, hidden file or whether it is a Read-only file. Well, this happens due to File Attributes.

What are File Attributes in Windows

Each file in Windows contains some metadata associated with it which determines the general system behavior of that file. These are called File attributes, and they impart information about the file itself. These attributes have only two possible values - set or cleared. These are like a flag that can be turned On/Off.

We have seen how you can change File Attributes using attrib.exe and taken a look at Attribute Changer freeware that lets you do so in a click. Today, we're going to take a look at how to add these file attributes to the standard context menu so that you can easily manipulate any file by setting or clearing off its attributes.

Add File Attributes option to Context menu

You should be signed in as an Administrator for adding these file attribute options to the right-click context menu and make it accessible for all the users on your PC. Also, one more important thing to note here is that you'll not be able to set/clear the attributes of a file/folder until you're an Owner of it. So play along with only those files for which you're having Owner permissions.

Below is the list of commonly used file attributes and their corresponding bit value.

Commonly used File Attributes in Windows

Let's take a brief look at what each attribute means:

Read-Only (R): This attribute will prevent other users or programs from making any permanent changes to a file. It comes in handy if you want to set a file as write-protected. However, this flag does not ensure that the file will not be deleted.

Hidden (H): Any file/folder which has this attribute set will be hidden from the normal view. It will only be visible if you bypass the system settings and chose to display all hidden files and folders.

System (S): Setting this attribute ON for any file will make it a system file which can not be modified or deleted. This is how the Operating System configuration files are secured.

Directory (D): Just like LINUX, this attribute is used to differentiate the folders and sub-folders from the files.

Archive (A): This attribute is used to help effectively manage backup and archival of the files. Whenever any changes are made to a backed-up file, this attribute is set to ON so that the backup software can identify such modified files by analyzing their Archive attribute. This helps in taking the 'incremental backup' of any intended file.

Not Content Indexed (I): If you want any file not to appear the results while using Windows Search functionality, you can set this attribute ON for the file in question. Once set, the file will be skipped when the operating system will search for any content.

Add Set/Clear options for File attributes in Context Menu

We have created a Registry Editor Entry File (.REG) file to help you easily add the file attribute option to context menu where you can easily set/clear off the individual attributes for any file/folder. If you would want to remove these options from the context menu in the future, use the other REG file that removes these registry entries made earlier.

Just download this zip file, extract its contents and run the appropriate one with Administrator privileges to add/remove the registry entries. Now, for accessing these options from the context menu, just right-click the desired file/folder and navigate to Attributes menu item in there. Select the option from sub-menu for your intended operation.

Selecting any option from the sub-menu would launch a Command Prompt window for the execution of the underlying command.

Below is an example image where I have displayed all attributes for a folder, its subfolder and files as well. A CMD window popped-up displaying all the attributes for the folder.

Hope it works for you!

See this post if you receive The Extended Attributes Are Inconsistent error in Windows 10.

Best Linux Distros for Gaming in 2021
The Linux operating system has come a long way from its original, simple, server-based look. This OS has immensely improved in recent years and has no...
Cum să capturați și să transmiteți în flux sesiunea de jocuri pe Linux
În trecut, jocurile erau considerate doar un hobby, dar cu timpul industria jocurilor a cunoscut o creștere imensă în ceea ce privește tehnologia și n...
Cele mai bune jocuri pentru a juca cu urmărirea manuală
Oculus Quest a introdus recent marea idee de urmărire manuală fără controlere. Cu un număr din ce în ce mai mare de jocuri și activități care execută ...