Change File Attributes Windows 7

Windows offers a wide variety of tools that you can access using your command prompt window including the “attrib” tool which is designed to help you search for files by location and name then view and modify their file attributes.

  1. Sep 30, 2019  How do I change the read-only or system attributes of folders? Breaking news. Windows 7 / Files, folders, & storage; Answer James-Replied on August 25, 2009. To view or to remove the Read-only or the System attributes of folders, use the Attrib command at a command prompt: 1. Click the Start button, type cmd in.
  2. Note: In Windows 7, Vista, or XP, you will see only the Read-only and Hidden checkboxes on the first screen. To see the Archive checkbox, click Advanced. Change file attributes from the command prompt. To determine what attributes are enabled on a file, you must use the attrib command in the command prompt. In the directory where the file is.
  3. Jun 11, 2010  Attribute Changer for Windows 10/8/7, is a power user tool to change all kind of file and folder attributes, date, time and other information stored in files.

Sep 12, 2019  This time, the attrib command is used to remove multiple file attributes from the bcd file, an important file that must be working for Windows to start. In fact, executing the attrib command, as shown above, is a key part of the process outlined in the steps necessary for. I haven't found this on the internet yet, but there is also a 'P' attribute, corresponding to a sparse file. This flag is listed in Windows 7, but not in Windows XP. Not sure about Vista. You can turn a file sparse with the fsutil sparse setflag FILENAME command, and see the flag appear in Explorer. Note that there is no way to turn off the.

What Attributes Can You Use?

Now that you have your elevated command prompt window open, you will need to know what types of attributes you can edit using the “attrib” tool. There are two main types of attributes, “basic” and “extended.”

Basic Attribute Switches (R, H, A, S)

  1. R – This command will assign the “Read-Only” attribute to your selected files or folders.
  2. H – This command will assign the “Hidden” attribute to your selected files or folders.
  3. A – This command will prepare your selected files or folders for “Archiving.”
  4. S – This command will change your selected files or folders by assigning the “System” attribute.

“Attrib” Syntax

You will need to know the proper syntax to use for the “attrib” tool before you get started.

In this syntax, you will need to know what the different switches and parameters represent.

  1. The + and – indicate whether you will activate or deactivate the attribute specified.
  2. The attributes you can use are those explained above.
  3. The “/S” signifies that you want to search the entire path specified including subfolders for a particular file.
  4. The “/D” signifies that you want to include any process folders as well.
  5. The pathname indicates the location of your target folder or file. The proper syntax for path files is shown below.

If you decide not to specify any of the attributes listed above, the files or folders will revert to their current attribute settings.

Let’s Practice

Now that you know the types of attributes you can use and the syntax you need to use, let’s practice some scenarios. Open the start menu in Windows 7 and 10 or open the search function in Windows 8 and search for CMD. Next, right-click on it and then press “Run as administrator.” While you don’t need to open an elevated command prompt window, it will help you to avoid any confirmation dialog boxes.

Scenario 1 – Clear “Hidden and System” attributes with a single command to make your files or folders normal.

For this example, we will first create a file in your “Documents” directory called “sample.txt.” First, open up the directory and right-click somewhere in the window, move your mouse to the “New” section, click on “Text File,” and name the document “sample.”

Now go to your CMD window. We will change the file’s properties so that it is both a system file, and hidden. Do this by entering the following command.

Remember to substitute the “Martin” section of the path parameter with your computer’s username.

Once you have done this, you will notice that the file has disappeared from your documents folder. Now that we want to remove the System and Hidden file attributes from “sample.txt,” we will need to use the following simple command.

Note that if you try to enter the file name without a path, you will receive an error. You must remember to add the entire path to your command. Now, if you go back to your “Documents” directory, you will see the file in the list.

Scenario 2 – Make all text files in your “Downloads” folder read-only system files.

Now we will create a few sample text files in the “Downloads” directory and we will edit them using the “attrib” tool so that they all become read-only system files.

Once you have your sample text files created, it is time to use CMD to write a command that will change the attributes of all text files in a specified directory to “Read-Only and System.” For this, we will need to use wildcards to select all the text files. You can do this by using the command below. Remember to substitute the “Martin” section with your computer’s username.

Now you can open your downloads folder, right-click on one of the text files and then select properties. You will note that the file attributes have been changed. To remove these settings simply use the same command, but replace the plus signs with minus signs.

Scenario 3 – Prepare a file located on your desktop for archiving.

Let’s start by creating a sample text file on the desktop. Now, navigate to your CMD window and enter the following string to prepare the selected file for archiving.

Change

Scenario 4 – Hide an entire Directory/Folder on your desktop.

Let’s say for example, you have sensitive data in a folder on your desktop called “Private,” and you want to hide it along with all its files and subfolders. It is important to note that when you are working with directory attributes, you cannot use wildcards such as “? and *.” You will need to be explicit in your file path. First, you need to create a folder on your desktop and put a few files in it. Once you have done that, navigate to your CMD window and enter the following command.

Once you press “Enter,” the entire folder will disappear since it will be hidden.

Now you can play with some of the other settings to make changes to any file attributes on your computer.

READ NEXT
  • › What Does “FWIW” Mean, and How Do You Use It?
  • › How to Automatically Delete Your YouTube History
  • › What Is “Mixed Content,” and Why Is Chrome Blocking It?
  • › How to Manage Multiple Mailboxes in Outlook
  • › How to Move Your Linux home Directory to Another Drive

To view or to remove the Read-only or the System attributes of folders, use the Attrib command at a command prompt:

1.Click the Start button, type cmd in the search box, and then press Enter.

2.To view the syntax for the Attrib command, type attrib ? at the command prompt.

Warning: If you remove the Read-only or System attribute from a folder, it may appear as a ordinary folder and some customizations may be lost. For example, Windows customizes the Fonts folder and provides a special folder view that permits you to hide variations, such as bold and italic. It also permits you to change the folder's view settings in ways that are specific to fonts. If you remove the Read-only and System attributes of the Fonts folder, these customized view settings are not available. For folders that you have customized by using the Customize tab of the folder's Properties dialog box, the folder icon and other other customizations may be lost when you remove the Read-only attribute.

Edit File Properties Windows 7

If a program cannot save files to a folder with the Read-only attribute, such as My Documents, change the Read-only attribute to System by using the Attrib command at a command prompt.

To remove the Read-only attribute and to set the System attribute, use the following command:

attrib -r +s drive:<path><foldername>

For example, to remove the Read-only attribute and to set the System attribute for the C:Test folder, use the following command: attrib -r +s c:test

Be aware that some programs might not operate correctly with folders for which the System attribute and the Read-only attribute are set. You can use the following command to remove these attributes:

Change File Date Attributes Windows 7

attrib -r -s c:test