File types created by Associate.exe are always given a name in the form xxxfile, where xxx is
the file extension.
“The earth does not belong to man.... man belongs to the earth” ~ Chief Seattle
ATTRIB.exe
Display or change file attributes. Find Filenames.
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
The numeric values
may be used when changing
attributes with VBS/WSH
If no attribute is specified attrib will return the current attribute settings. Used with just the /S
option ATTRIB will quickly search for a particular filename.
Hidden and System attributes take priority.
If a file has both the Hidden and System attributes set, you can clear both attributes only with a
single ATTRIB command.
For example, to clear the Hidden and System attributes for the RECORD.TXT file, you would
type:
ATTRIB -S -H RECORD.TXT
File Attributes
You can use wildcards (? and *) with the filename parameter to display
or change the attributes
for a group of files.
Remember that, if a file has the System or Hidden attribute set, you must clear that attribute
before you can change any other attributes.
Chia sẻ với bạn bè của bạn: