How to hide files and folders using command prompt easily

How to hide files and folders using command prompt easily

Most of the times, we hide some of our personal files in the computer system so that it is not easily accessible by others. There is a very long method to do it, first hide it and then unhide it if you need some stuffs out of it. But here in we would teach you a basic few steps How to hide files and folders using command prompt easily.

How to hide files and folders using command prompt easily


Lets take an example of a file or folder named "Personal" which is situated in D drive of your computer and you wish to hide it.


Simply follow the Steps mentioned below.



  • You need to open "Command Prompt" first. Shortest way to open Command Prompt is,
  • Press Windows Button + R.  run command dialog box would open



  • Just type "cmd" in the dialog box and hit enter.
  • Command Prompt would open.



  • Now, type attrib +s +h D:Personal and press enter (D is the drive where your file/folder is and Personal is the name of it)
  • The folder "Personal" would be hidden and cannot be viewed by any search options.
  • Now the file/ folder named Personal has been hidden. In order to un-hide it, open the command prompt again and type the command

          attrib -s -h D:Personal

  • The files/folder would be automatically unhidden.


This is a simple trick yet effective and time effective.

Kindly share it with your Friends, Family and circle so that more people could be aware about the same.

  • Article By :
    Shayaan Ahmad Noori, a highly accomplished and renowned Communication expert. He is currently Founder and C.E.O of Creative Buffs. He has extensive work experience of 14+ years, out of which he carries a wide range of experience of 9 years with Tech Mahindra, Smile Foundation, CanvasM Technology Private Limited, Australian Training and Management College and much more. He has done M.B.A and P.G.D.B.M in Marketing and HR and also has done Masters in Sociology. He has done approx more than 100 training sessions in Communication Skills, Marketing, Management, Society and development and Digital Marketing.

Random Posts

Leave a Reply