Attrib Command Examples
'Attrib' Command Syntax & Switches The command takes the following general form: attrib [ +a | -a ] [ +h | -h ] [ +i | -i ] [ +r | -r ] [ +s | -s ] [ +v | -v ] [ +x | -x ] [ drive : ][ path ][ filename ] [ /s [ /d ] [ /l ]] If you're not sure how to interpret the attrib command syntax you see above or shown in the table below, it's advised to learn how to read command syntax . Attrib Command Options Item Explanation attrib Execute the attrib command alone to see the attributes set on the files within the directory that you execute the command from. +a Sets the archive file attribute to the file or directory. -a Clears the archive attribute. +h Sets the hidden file attribute to the file or directory. -h Clears the hidden attribute. +i Sets the 'not content indexed' file attribute to the file or directory. -i Clears the 'not content indexed' file attribute. +r Sets the read-only file attribute to the file or directory. -r Clears the read-only attrib...