|
ATTRIB
Displays, sets, or removes the read-only, archive, system,
and hidden attributes assigned to files or directories. Used
without parameters, attrib displays attributes of all files
in the current directory.
Syntax
ATTRIB [ + attribute | - attribute ] [pathname] [/S [/D]]
Key
+ : Turn an attribute ON
- : Clear an attribute OFF
pathname : Drive and/or filename e.g. C:\*.txt
/S : Search the pathname including all subfolders.
/D : Process folders as well
attributes:
R Read-only (1)
H Hidden (2)
A Archive (32)
S System (4)
extended attributes:
E Encrypted
C Compressed (128:read-only)
I Not content-indexed
L Symbolic link/Junction (64:read-only)
N Normal (0: cannot be used for file selection)
O Offline
P Sparse file
T Temporary
If a file has both the Hidden and System attributes set, you
can clear both attributes only with a single ATTRIB command.
You can use wildcards (? and *) with the filename parameter
to display or change the attributes for a group of files.
You can display or change the attributes for a
directory/folder. To use ATTRIB with a directory, you must
explicitly specify the directory name; you cannot use
wildcards to work with directories.
Cmd Commands
|