Expecting you know which attribute you want to modify, the next step will be to find a shortcut to be used. You may look for Total Commander shortcuts to modify the one you don't use that often or suits you the most.
In example below I will use ctrl + P to create shortcut for removing Read Only attribute:
- Click "Configuration"-> "Options..." -> "Misc".
- In "Redifine hotkeys (Keyboard remapping)" mark Ctrl and select P.
- Click on the magnifying glass next to "Command".
- Go to the bottom of the list and click on usercmd.ini
- Click on "New" and name the new command for example em_RemoveReadOnly
- Fill out the dialog like this:
- Command: attrib.exe -R
- Parameters: %P%N
- Tooltip: Mark file readonly
- Check the box "Run minimized"
- Icons are optional
-R parameter in command removes Read Only attribute, the + sign do the opposite (adding the attribute). Similar for Archive[A], System[S] and Hidden[H]
Resources:
attrib.exe function and its parameters
forum post driving this question