home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
PWP40_1.ZIP
/
ATTRIB.INS
next >
Wrap
Text File
|
1991-10-27
|
2KB
|
80 lines
ATTRIB Used to change or display the "attributes"
(R = Read/Write and A = Archive) of a file.
Format: ATTRIB [+R:-R][+A:-A] [Path][FileSpec] [/S]
+R makes the FileSpec(s) attribute READ-ONLY, which
prevents the file from being changed or deleted.
-R removes the READ-ONLY setting, allowing changes
to the file to be made and deletion of the file
to be accomplished.
+A sets the ARCHIVE bit of the FileSpec(s) which
allows the file(s) to be included in BACKUPs.
-A resets the ARCHIVE bit of the FileSpec(s) which
prevents the file(s) from being BACKed-UP even
when a /M switch with BACKUP and XCOPY is used.
/S applies the command to sub-directories.
Example: ATTRIB +R C:\AUTOEXEC.BAT
Sets the read\write attribute of the AUTOEXEC.BAT
file contained in root directory on drive C: to
READ-ONLY which prevents its accidental deletion
and precludes unauthorized changes.
Example: ATTRIB +R C:\DOS\*.*
Sets the attribute of ALL files contained in the
\DOS directory on drive C: to READ-ONLY.
Example: ATTRIB +R D:\*.BAT /S
Sets the attribute of ALL files with a .BAT ext
in ALL directories of drive D: to READ-ONLY.
Example: ATTRIB -R D:\*.BAT /S
Removes the READ-ONLY setting of ALL files with
a .BAT ext in ALL directories on drive D.
Example: ATTRIB +A C:\123\*.WK1 /S
Sets the ARCHIVE bit of ALL files with a .WK1
ext in C:\123 directory and \123 sub-directories
which will ensure that they are INCLUDED in all
BACKUPs even when the /M switch of BACKUP is used.
Example: ATTRIB -A C:\AUTOEXEC.BAT
Resets ARCHIVE bit of the AUTOEXEC.BAT file in
the root directory of drive C: which EXCLUDES it
from being backed-up during execution of BACKUP
operation when the /M switch of BACKUP is used.
Example: ATTRIB C:\AUTOEXEC.BAT
Displays attribute settings for the AUTOEXEC.BAT
file contained in the root directory of drive C.
Example: ATTRIB D:\*.BAT /S >LPT1
Displays attribute settings for ALL files with a
*.BAT ext that are contained on the root directory
and ALL sub-directories of drive D. The >LPT1
parameter REDIRECTS the output of this command to
your printer instead of displaying it on-screen.
[*] Use of WILDCARDS (*) in FileSpec(s) is allowed.