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

Turning Off Paste Options

Paste some information into a worksheet and Excel helpfully displays some options related t the paste operation. If you ...

Discover More

Automatically Using Smart Quotes

As a way to make your documents look more professional, Word can utilize "smart quotes" for both quote marks and ...

Discover More

Converting Forms to Regular Documents

Word allows you to protect documents that are intended to be used as forms. If you want to convert the form responses ...

Discover More
More WindowsTips

Pin Items to File Explorer's Quick Access View

You can improve your efficiency at navigating the file system by using the Quick Access view. This tip shows you how to ...

Discover More

Opening a File with a Program Other than the Default

Windows determines a program to use with a particular file based on the file's type. If you want to temporarily override ...

Discover More

Turning On the Display of File Extensions

Windows is configured, by default, to hide file extensions. This could be confusing or outright dangerous. For example, ...

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 two more than 7?

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