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

Selecting a Custom Chart

Microsoft Graph allows you to easily create charts from numeric data, without the need to use Excel. Here's how to use ...

Discover More

Selecting a Bookmark in a Macro

Bookmarks can be very handy in a document. Word provides a VBA command you can use to easily select any of those bookmarks.

Discover More

Inserting a Watermark Behind Merged Cells

If you have a group of merged cells into which you want a user to enter information, you may want some sort of ...

Discover More
More WindowsTips

What are the Limits on File Names?

It's good to know what the limits are when naming files, although in most cases the limits are sufficiently high that ...

Discover More

Using Robocopy to Mirror Directories

It's simple to use Robocopy when dealing with entire directories. Dealing with directories is what it does best! This top ...

Discover More

Permanently Deleting a File

If you have a file that you're sure you want to permanently delete (instead of having it go to the Recycle Bin) it's an ...

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 2 + 2?

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