ATTRIB

from Wikipedia, the free encyclopedia

ATTRIB is a command line program in DOS , OS / 2 and Windows . The program enables the user to change directory or file attributes .

background

Files can be identified by file attributes in Microsoft operating systems. This is additional information about a file or directory that goes beyond its content. These attributes are read in or set using basic system calls . As of MS-DOS 4.0, the FAT file system had one attribute byte per file or directory. The first six bits of this byte contain information about whether it is write-protected , hidden or archived , or whether it is a system file, a volume label or a directory. Up to PC or MS-DOS 3.0, the attributes could not be queried or modified with standard DOS tools; with DOS 3.0 Microsoft supplied the ATTRIB command for this.

history

The first version of ATTRIB was supplied with PC-DOS 3.0. With the first version it was only possible to modify the write protection bit. In future versions it will also be possible to set the archive, hidden or system bit. MS-DOS 3.3 added a function that made it possible to display file attributes recursively in subdirectories.

commitment

Setting the write protection attribute prevents the files concerned from being accidentally deleted with DEL or ERASE, but not with DELTREE . The function of the BACKUP command can be controlled by specifically setting or resetting the archive bit using ATTRIB .

See also

Individual evidence

  1. a b c Charles Petzold: PC Mag . In: PC Magazine . Ziff Davis, Inc., June 10, 1986, p. 249-262 ( books.google.com ).
  2. DOS Attrib . In: Encyclopedia . PC Magazine. Retrieved August 2, 2007.
  3. Using ATTRIB, CHKDSK, or DIR Command to Locate Files . Microsoft. Retrieved September 1, 2014.
  4. Tim O'Reilly, Troy Mott, Walter J. Glenn: Windows 98 in a Nutshell. A Desktop Quick Reference . O'Reilly Media, Inc., 1999, ISBN 1-56592-486-X , pp. 303–306 ( books.google.de - limited preview).

Web links