Understanding and Using File Attributes

Written by Allen Wyatt (last updated December 11, 2017)

3

Windows files have several attributes, or properties. These attributes affect how the file can be manipulated. What follows is a list of the available file attributes and what they mean:

  • Read-only: The file cannot be accidentally edited and saved.
  • Hidden: The file cannot be seen in Windows Explorer. (Hidden files are discussed in another tip.)
  • System: The file is a system file and should not be manipulated by the user.
  • File is ready for archiving: This was originally used to indicate that the file is available to be backed up. This attribute is no longer used in the majority of today's backup programs.
  • Allow this file to have contents indexed in addition to file properties: This tells the system that when it indexes the file, it should also index the contents of the file. Indexing the contents of a file allows you to use the Search feature of Windows Explorer to find files that contain the specified text. If the contents are not indexed, the Search feature will only find files by their name.
  • Compress contents to save disk space: This tells the system to compress the file in order to save disk space. A file that is compressed is shown in blue.
  • Encrypt contents to secure data: This causes the file to be encrypted, assuming the system has a properly configured recovery policy.

There are a couple of ways to view and change a file's attributes. One way is through Windows Explorer or File Explorer. By right-clicking on a file and selecting Properties, Windows displays a Properties dialog box for the file. (See Figure 1.)

Figure 1. A file's Properties window.

In the Properties dialog box you can set the Read-only and Hidden attributes. There are more attributes, though, and these can be seen by clicking the Advanced button to display the Advanced Attributes dialog box. (See Figure 2.)

Figure 2. A file's Advanced Attributes window.

Again, setting or clearing the checkboxes is how you set or clear the file's attributes.

 This tip (12023) applies to Windows 7, 8, and 10.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Printing a Chart Across Multiple Pages

Wouldn't it be great to have your huge charts print out on multiple pieces of paper that you could then piece together? ...

Discover More

Copying a Chart and Related Shapes to a Word Document

Excel and Word are intended to work together, but sometimes it can seem that getting them to do so isn't that intuitive. ...

Discover More

Applying the All Caps Format

Want your text to always appear in uppercase, regardless of how you type it? Word allows you to add formatting to your ...

Discover More
More WindowsTips

Changing the Hidden Attribute for a File

Windows maintains a set of attributes that describe and control characteristics of your files. Here's how to change the ...

Discover More

Removing a File Type Program Association

Removing a file type program association is a task for third-party utilities. You can, however, change the association ...

Discover More

Using Robocopy to Copy Entire Directories

It's simple to use Robocopy to copy entire directories. Dealing with directories is what it does best! This tip shows you ...

Discover More
Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 5?

2019-03-22 16:20:21

Andrea Ordodi

We are having issues with searching our scanned PDF's not being found on our server. If I open the PDF and search it finds the text but if I go to the outer folders or server at all it will not find the text within the document. I have checked the indexing settings and they all appear to be correct. Any ideas?


2018-05-17 15:40:54

Jared

Do you know if applying this to a network drive will deindex the contents of the files for other users. I'm trying to unindex a network drive to make the search quicker, but I don't want to do it if it makes others not see it, soo.


2018-03-18 23:03:45

Reva

Hi Allen,

I visit your columns here every so often; great posts and tips.

I have a strange problem ??

I use Windows 10 64-bit. I have quite a few mp3 files in my download folder. A lot of them have their "allow this file to have contents indexed in addition to file" box checked; and there are some that do not have this box checked.

When I do a search, I right click on each search result to view the the property details.

On the files which have their "allow..." boxes checked, the property metadata (mp3 tags in this case) details show as you would when you right click in a normal explorer window.

But on those files whose boxes are unchecked, the metadata fields are all blank, as if they have not been filled in. When I revert to Explorer Home and right click, I see the filled-in metadata in the property details.

This brings up the question, how would I do a global search for those files in a given folder with unchecked "allow.." boxes?

Thanks.


Newest Tips