Change File Attributes, create super hidden private files & folders using attrib.exe

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.


  1. Muliyama

    Great article – well done, Anand!

  2. luis matoso

    A GREAT, GREAT tip. Tank you.

  3. bomba

    cmd says FIND: parameter format not correct
    (in italian -> FIND: formato del parametro non corretto)

  4. heistmeister

    if it shows parameter format not correct, the file maybe contains of spaces
    For example : I want to make folder “WordPress coba” to be super hidden.
    So in cmd, I must type the directory enclosed by quotes.

    attrib +s +h “D:Wordpress coba”

    If the folder or file name doesn’t consist of spaces, you can type the directory file/folder without quotes

    attrib +s +h D:Games

    It should work now 😀

  5. Mashuk

    cmd says “file not found”
    but the file name doesn’t contain any space and i type the location correctly…… 🙁

  6. Anonymous

    For those with formatting or file not found issues, right click your folder and MAKE SURE ITS UNHIDDEN AND NOT CHECKED AS READ ONLY. I had to do it five times before i figured out the problem.

    Format should be as follows (for super hidden):
    attrib +s +h “C:UsersUsernameDesktopFoldername”

  7. manu

    How to hide photos and videos using cmd. I used folder method which uses attrib command to hide folders, It worked fine for hiding the folder but when I typed file extensions such as (.jpg) in the search box all the files were shown. how to hide them using cmd. Help me …….

  8. Bruce Kjeldsen of Rhododendron

    I recently installed Windows 10. It’s been a disaster. All the files were marked read-only. I tried changing the attributes using your suggestion. Doesn’t work. I tried it in command prompt. No luck. I will have to return the laptop and go back to paper & pencil.

Leave a Reply

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

2 + 6 =