ATTRIB [+/-parms] Modifies the attributes
[d:][path]filespec[/parms]
Parms Function
----- -------------------------------------------------------------------
+R Set READ ONLY attribute for file
-R Set READ/WRITE attribute for file (Normal file) (Default state)
+A Set archive attribute bit for file. This means that the file needs to be
backed up
-A Cancel archive attribute bit for file
/S Process the files in the specified directory and all its subdirectories.
ATTRIB + Specifying the Read-only and Archive Attributes
Allows you to specify a file as read-only or archived, or to
display whether a file has either of these attributes.
VERSION
PC-DOS 3.0+ (revised in 3.3)
MS-DOS equivalent: ATTRIB (3.0+)
TYPE
External
SYNTAX
[d:][path] ATTRIB [+R][--R][+A][--A]
[cd:][cpath]cfilename /S
OPTIONS
[d:][path] Specifies the drive letter and
path that contain the ATTRIB
command.
+R Sets file to read-only.
--R Removes read-only status.
+A Sets the archive bit for the
file.
--A Turns off the archive bit for
the file.
[cd:][cpath]cfilename Specifies the file whose
attribute you are changing.
/S Instructs DOS to set
attributes for all files in
the subdirectories of the
directory.
ATTRIB is used in networks in which multiple users need to
be able to access certain files but not alter them.
EXAMPLES
ATTRIB +R DATA.TXT
BEFORE: Allows read or write access.
AFTER: Sets the file DATA.TXT to read-only.
To view the status of that file (to see whether it has been
marked read-only), enter
ATTRIB DATA.TXT
DOS returns the line
R A:\DATA.TXT
indicating by the R that the file has been marked read-only.
MESSAGE
Invalid path or file name
You specified a name that does not exist. Check the path name and
try again.
UNDO
To remove the restricted access, enter the command as in
ATTRIB --R DATA.TXT
Use the command
ATTRIB --A C:*.* /S
to reset (turn off) the archive bit for all files in all
subdirectories on drive C.
NOTE
The file name may contain a path and extension, and
wildcards may be used. If you want to use the files with the
BACKUP, RESTORE, and XCOPY commands with the /M option, or the
XCOPY command with the /A option, use the +A option if necessary
to set the archive bit. If the archive bit is not set, files will
not be copied when these commands are used. In PC-DOS version
3.3, you can modify attributes for selected files in a directory
or subdirectory.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
BACKUP Command
COPY Command
DEL (DELETE) and ERASE Commands
DIR Command
PRINT Command
RENAME EN) Command
REPLACE Command
RESTORE Command
SHARE Command
TYPE Command
VERIFY Command
XCOPY Command
file: /Techref/dos/command/attrib.htm, 3KB, , updated: 1999/2/20 11:24, local time: 2024/10/31 20:43,
3.133.129.65:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/dos/command/attrib.htm"> dos command attrib</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.