Like what you see? Get it in one document for easy printing!
Click Here!
Use coupon code "SAVE50" to get it half price!

Custom Search







Table Of Contents  CertiGuide to A+ (Operating Systems)
 9  Chapter 0011:  DOS
      9  V  File-Related DOS Commands

Previous Topic/Section
SCANDISK
Previous Page
Pages in Current Topic/Section
1
2
Next Page
The Archive Attribute
Next Topic/Section

ATTRIB
(Page 1 of 2)

FAT (and NTFS) have attributes telling the PC some information about the files that are stored. NTFS actually has much more information about the files than FAT, and that story has been told in the File Systems chapter earlier in this book.

FAT has 4 attributes that can be assigned to a file, as we saw earlier. Using the attrib command, you can turn these on and off as if each one was a separate light switch on the wall.

ON or OFF. The + sign means ON, while the sign means OFF. When you have a moment, go to the command line of a c drive on a computer. Type the command, DIR MSDOS.SYS you will be told, “file not found” this is because the file is hidden. In other words, the hidden bit, or attribute, is turned ON for MSDOS.SYS.

You know by now that MSDOS has to be there (if it is running DOS or Windows 9x). So, it’s there. It just isn’t visible. Now, type this command: ATTRIB MSDOS.SYS

You will be told that the file MSDOS.SYS is in fact there, and it has at least two attributes. These are the system and hidden attributes. The command may also tell you that the archive bit is ON. It will inform you of this with the typical terse form of DOS with SHR, with each letter corresponding to an attribute, as follows:

  • R=Read-only

  • A=Archive

  • S=System

  • H=Hidden

    Figure 143: The ATTRIB command and R-A-S-H in DOS

     


8 Practice ATTRIB


Previous Topic/Section
SCANDISK
Previous Page
Pages in Current Topic/Section
1
2
Next Page
The Archive Attribute
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (Operating Systems) from StudyExam4Less.com. (Use coupon code "SAVE50" to save a full 50% off the already low price!) Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (Operating Systems) (http://www.CertiGuide.com/apluso/) on CertiGuide.com
Version 1.0 - Version Date: January 7, 2005

Adapted with permission from a work created by Tcat Houser.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.