C:\WINDOWS>HELP ATTRIB
Displays or changes file attributes.
ATTRIB
[+R | -R
] [+A | -A
] [+S | -S
] [+H | -H
] [drive:
][path
][filename
] [/S
[/D
]] + Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
[drive:
][path
][filename
] Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.
EXAMPLE
clear attributes (-H)Hidden (-S) System
ATTRIB -S -H RECORD.TXT
add attributes (-H)Hidden (-S) System
ATTRIB S H RECORD.TXT
Show attributes. (*.*)
C:\WINDOWS\system32>ATTRIB
A C:\WINDOWS\system32\bootvid.dll
A C:\WINDOWS\system32\kdcom.dll
A C:\WINDOWS\system32\c_1252.nls
A C:\WINDOWS\system32\c_437.nls
A C:\WINDOWS\system32\l_intl.nls
A C:\WINDOWS\system32\lz32.dll
A C:\WINDOWS\system32\spupdwxp.log
A C:\WINDOWS\system32\oleaut32.dll
A C:\WINDOWS\system32\olesvr32.dll
A C:\WINDOWS\system32\olethk32.dll
A C:\WINDOWS\system32\unicode.nls
A C:\WINDOWS\system32\vga.dll
A C:\WINDOWS\system32\ctype.nls
A C:\WINDOWS\system32\kbdus.dll
A C:\WINDOWS\system32\netevent.dll
A C:\WINDOWS\system32\msacm32.drv
A C:\WINDOWS\system32\netmsg.dll
A C:\WINDOWS\system32\wpa.dbl
A C:\WINDOWS\system32\stclient.dll
A C:\WINDOW.......................
...........................................
Show attributes. (*.exe)
C:\WINDOWS\system32>ATTRIB *.exe
A C:\WINDOWS\system32\append.exe
A C:\WINDOWS\system32\arp.exe
A C:\WINDOWS\system32\asr_ldm.exe
A C:\WINDOWS\system32\asr_fmt.exe
A C:\WINDOWS\system32\bootok.exe
A C:\WINDOWS\system32\bootvrfy.exe
A C:\WINDOWS\system32\chkdsk.exe
A C:\WIND.......................
.........................................
C:\WINDOWS>HELP BREAK
Sets or Clears Extended CTRL+C checking on DOS system
This is present for Compatibility with DOS systems. It has no effect
under Windows XP.
If Command Extensions are enabled, and running on the Windows XP
platform, then the BREAK command will enter a hard coded breakpoint
if being debugged by a debugger.
C:\WINDOWS>HELP CACLS
Displays or modifies access control lists (ACLs) of files
CACLS filename
[/T
] [/E
] [/C
] [/G user:perm
] [/R user
[...
]] [/P user:perm
[...
]] [/D user
[...
]] filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G user:perm Grant specified user access rights.
Perm can be: R Read
W Write
C Change (write)
F Full control
/R user Revoke specified user's access rights (only valid with /E).
/P user:perm Replace specified user's access rights.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
/D user Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.
Abbreviations:
CI - Container Inherit.
The ACE will be inherited by directories.
OI - Object Inherit.
The ACE will be inherited by files.
IO - Inherit Only.
The ACE does not apply to the current file/directory.