The privacy should be the priority first whether it is your personal life or your professional life. Now, in today’s world privacy is the hottest topic among all. If you are a daily computer user Or computer is the part of your daily activity then there is something on your computer that you would not want to share with anyone else. If you would not wish to share those file or folder with anyone else then what will you do? You can either make a password protected file or folder for that or you will hide that particular folder. In this article, we will learn how to hide file or folder with the attrib command.
What is attrib commands?
Before starting the steps we should first know that “what is attrib command?”
The attrib command is basically the command prompt command that is used to remove and set file attributes. Like, using the attrib command you can make A hidden file (No one can see the file or folder which is hidden by the user), A read-only attribute to the file (people can see the file but cannot delete it or can’t make any changes into the file), Archived (Provide a backup of file. Hence help in recovering of files).
Parameters of attrib command: –
Here are some parameters that are used when you apply the attrib command.
- +h: – Used to make the file attribute as hidden not visible to the user.
- -h: – Used to clear the hidden file attribute.
- +r: – Used to set the file attribute as read-only.
- -r: – Used to clear the read-only file attribute.
- +s: – Used to set the file attribute as a system file.
- -s: – Used to clear the system file attribute.
- +a: – Used to set the file attribute as an archive.
- -a: – Used to clear the archive file attribute.
Now, now you are aware of the parameter for the attrib command. Now start our main purpose for which you are here. Let’s start
How to hide and unhide file and folder:
Note: – You should always have to remember the path and the folder name you are hiding. It is very important because if you forget the name and the path of the folder and files then you will unable to recover it after. So make sure To write Drive letter for the path a folder and its name it on a paper or anywhere else where yeah you can get it easily.
Steps to hide file folder using the attrib command:
Step 1: – Open your command prompt. To do this, start your Windows system click on the Windows start button [wp-svg-icons icon=”windows8″ wrap=”i”] type CMD and run it as administrator.
Step 2: – Now now type the letter of your Drive where the folder is stored. In my case it is “E”. So, I will type the command “e:”. By typing this command you will enter the exact drive where the file is Store. Now press enter.
Step 3: – Now, to hide the folder you will need to type the following command:
attrib folder-name +s +h +r
As in my case, my folder name is “hideit”. So I have to type the following command:
Now, as a result, your file or folder is it now hidden. You can check it by going to the destination folder drive.
Step 4: – Now you have done what you wanted to do. The folder is hidden now so no one can see what you hide except you.
Now after all of these also have to unhide the folder just in case if you want to use those file or folder again. Now, to unhide it you have to type the same command except the science the sign of the attributes. See the following command to unhide file As given below:
The above command is given for my case. For you, replace hideit with your folder name.
Now all is done, you hide and unhide this file and folder but make sure to Remember all the command along with your drive path letter and the file name. It is very important for the future purpose if you want to restore those file again. So make sure you have done it.