Hide Files And Folders With Command Prompt


Hello Guys. today we gonna see how to hide Files And Folders With Command Promt, This is a very simple trick and 100% working in windows.

Earlier we already saw How to Create Password protected files/Folders without software , Today we will see how to hide Files and Folders with Command promt. If you have any personal or confidencial data in your pc and you dont wanna let other to peep it. then this trick will be very helpfull to you.

Follow the Below Simple Steps :-

For instance: Say you have a folder with name “Photos” which is stored in drive ” D ” and you think strangers should not see this folder then to hide that folder do the followings.


Press Windows key + Run , Run command will appear.
In that type cmd and press enter.

This will open Command prompt ,Now Type

“attrib +s +h D:\Photos”

Then press enter.

Thats it your folder is now hidden, if not then there will be some mistake done by you. (you will have to change the directory accordingly.

Once hidden it cannot be viewed by any search option.

Now to unhide it again, simply use the same command but replace ‘+’ with ‘-‘ on both flags ‘s’ and ‘h’ (For eg : “attrib -s -h D:\Photos” )

I believe this tutorial will help you a lot,

Please recommend this on google. click g+1
Thank you 🙂

4 thoughts on “Hide Files And Folders With Command Prompt

  • September 17, 2014 at 8:36 am

    it is very usefull vonmand thanks for share with us.when i use this command it is easily used on the folder which has no space between them
    eg. new folder and is there any space between the path the message is shown as parameter format is not correct but when i remove the space then this command is applied easily is it notva big problem but due to this i cant hide the folder on desktop because my user name of computer has a space between name..
    is there any way to resolve this problem….

  • February 4, 2015 at 10:42 am

    I´m looking for a command or other quick way to switch between hidden files are visible/not visible.
    Any ideas?

  • March 19, 2015 at 4:28 am

    it is very helpful thanks for sharing the valuable information which you know with us,and i am requesting you to also upload more commands which are used in cmd prompt…thank you


Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This