Using ATTRIB

The ATTRIB utility is important to understand because the correct setting of file and folder attributes is vital to the correct operation of Windows. ATTRIB is used to view and set basic file attributes (archive, read-only, system, and hidden).

Folders can also have these attributes; for example, the folder C:\Windows\Fonts has the system attribute. A file or folder can have multiple attributes; for example, the Msdos.sys file used by Windows 9x/Me has system, hidden, and read-only attributes. If you need to edit Msdos.sys, you must use ATTRIB to remove these attributes before changing the file, and reapply these attributes after changing the file.

To see or set advanced attributes such as encrypted, compressed, or creation date, ...

Get Absolute Beginner's Guide to A+ Certification now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.