Skip to main content

How To Hide File Folder Using Command Prompt

 
You must have used the feature of hiding some files through the menu ribbon bar present at the top of the file manager window. But do you know the fact that this can be done also with the help of Command Prompt? But how is this possible? That's not so difficult when you follow me. So let's do it.
  First of all, get ready with your file/folder, reach to its parent folder. Suppose your file/folder is named as "TechX" and is saved in "D:\" drive then the same drive will be its parent.
After finding its parent folder, while holding shift key right click on it (parent folder). After that, you just select the option 'open command window here'. And now you are ready to proceed to the next step. Before proceeding, remember the name of the file that is going to be hidden for recovery of that file/folder.
After you're ready with the command prompt window, type the code given below and hit the enter key.
attrib +s +h "folder name"
 
Note: You have to replace "folder name" with the name of your folder. Remember that you have to type this code in the command window opened at the parent folder of the file/folder you want to hide.
No sooner than you enter this code you will find your file hidden. To see its effect, just refresh your PC.
To get back or recover your file just type the code given below and press enter.
attrib -s -h "folder name"
 
After refreshing, you will find your file back. Note that you have to remember the file name otherwise you will not be able to unhide your file.

Thank you for reading and hope this post works well for you. If you think this post a drop in the world of tricks then please share it. Thanks a lot.... - :) - :)

Comments