Attrib command is very helpful for hiding or unhiding a folder completely and it can provide security benefits to your important files & software programs. In this article on MiniTool Website , we will discuss how to make your files and folders visible and invisible with attrib command and what you should do when attrib command not working happens step by step. Scroll down to get more details!

What Is Attrib Command Windows 10/11?

The attrib command is a command prompt whose main purpose is to delete and set file attributes like read-only, hidden, system and archive. Attrib command can run from the Command Prompt in all versions of Windows and it offers security to your software programs and important documents.

There are 4 conventional attributes in files and folders in Microsoft Windows:

Hidden - It makes the files and folders invisible. Therefore, if others use your device, these files and folders will be safe because they cannot see and access the files.

Read-only – You may not change or delete the specified read-only file.

Archived – It provides a backup of the file to help recover the file when it is corrupted or missing.

System – Mark the file as an important file hence changing its priority.

Do you know what the difference between data archiving and backup is? See this guide to get the answer: What’s Data Archiving & What’s Difference Between It and Backup .

The Parameters of Attrib Command

In this part, we will show you the most common attrib command parameters:

attrib : run this command alone to see the attributes set on the files within the directory that you execute the command form.

+h : make the file attributes as hidden and not visible to the user.

-h : clear the hidden file attribute.

+r : set the read-only attribute to the file or directory.

-r : clear the read-only attribute.

+a : set the archive file attribute to the file or directory.

-a : clear the archive attribute.

+s : set the file attribute as a system file.

-s : clear the system file attribute.

/s : process files in all directories in the specified path.

/d : only used with /s and it includes directories, not only files, to whatever you executing.

*.* : for all the files with all different types of file extensions.

Like all the commands in Command Prompt , you should use double-quotes around a folder or file name that has spaces. If you don’t add double-quotes, you will receive a “ Parameter format not correct ” error message.