Also found in: Dictionary, Acronyms, Wikipedia.


An external command in DOS and Windows that displays and changes the attribute settings in every file. The A, H, R and S bits are 1=yes and 0=no.
File Attributes
     A - Archived (backed up?)
     H - Hidden file
     R - Read only
     S - System file

To display the current attributes in all files in the current folder, type:
attrib *.*     files only
    attrib *.* /s  files & subfolders

When a file is read-only, it cannot be changed or deleted. To set and reset VITAL.TXT, type:
attrib vital.txt +r   set to read-only
 attrib vital.txt -r   reset to read/write

New files are set to archive status (archive bit is on). When files are copied by the Xcopy command, the archive bit is turned off (0) on the original file and not turned on again (1) until the file has been modified by some application. The following example removes and restores the archive status in XYZ.TXT.
attrib xyz.txt -a   turn off
   attrib xyz.txt +a   turn back on

To back up only modified files, the /m switch is used with the Xcopy command. After copying, the archive bit on the original file is turned off (set to zero). For example, to Xcopy only modified files to the BACKUP folder in drive D, type the following (for more examples, see Xcopy).
xcopy *.* d:\backup /m

These attributes are assigned to operating system files and some files that applications generate. As a rule, users do not tamper with them.
attrib xyz +s   make XYZ a system file
 attrib xyz -s   clear system file status

 attrib xyz +h   make XYZ a hidden file
 attrib xyz -h   clear hidden status
References in periodicals archive ?
2] According to O'Neill and Polachek (1993), about one-quarter of the closing of the male-female wage gap over the 1976-87 period can be attrib uted to changes in the actual labor force experience of women and an additional 50 percent can be accounted for by changes in returns to experience for women relative to men.
Three indirect antecedents of INTEN are posited: GLOB, PRIOR, and ATTRIB.
com) 1,460 -- 1,478 -- Total cost of revenues 13,895 2,178 23,755 3,656 Sales and marketing 16,864 3,906 31,832 7,496 General and administrative 9,328 2,634 16,200 3,999 Product development 5,540 1,410 9,132 2,587 Amortization of goodwill/other intangibles 16,733 -- 24,567 -- Acquisition-related compensation 400 -- 2,200 -- Write-off of acquired technology -- -- 7,650 -- Total operating expenses 62,760 10,128 115,336 17,738 Loss from operations (47,737) (8,071) (90,362) (14,495) Other income (expenses) and minority interest, net (160) 111 (79) 127 Net loss (47,897) (7,960) (90,441) (14,368) Stock dividend -- (14,556) -- (14,556) Net loss attrib.