How to hide files/folder using cmd

In this tutorial i am going to show you guys how to hide files or folders using command prompt. Manually hide/unhide folders without using any softwares. You can even create a batch file for this. See how to unlock hidden files.
This is quick and easy .


1)Go to run and type “cmd“[without quotes] and press ok.

2)Type **attrib c:xyzabcd +h +s**[without **] and hit enter.
This will hide folder abcd located at c:xyz.

3)To unhide the folder just change the “+” sign with “-”
**attrib c:xyzabcd -h -s**
and hit enter.


ATTRIB = This command allows the user to change the properties of a file/folder.

c:xyzabcd = Path of the folder.Change this with the path of the folder you want to hide.
[+ ,-] = “+” sign adds the attribute to the file while “-” removes the attribute from the file.
h = Hidden file attribute.
s = System file attribute.


So you just saw how to hide files and folders and how to view hidden files and folders.

About Rishabh Saxena

, also known as Maverick is a curious learner who wants to be an expert in every possible field of computing. Apart from learning Hacking, Programming, Networking and SEO, he loves to play Counter Strike 1.6 and sharing his knowledge with others. To know more about him, follow him on Facebook,Twitter and .


  1. can you please tell what are the other available attributes command.
    And can you please elaborate system file attribute.

    • System file attribute : this attribute makes the file specified a system important file like u will find some in windows directory ! but these files are invisible to view the system hidden files follow thse steps :
      tools>>folder options >> view >> tick the “show hidden files ” amd unctick ” hide protected system file ”

      ok i will edit this post and add other atributes too :D

  2. hey can u tell me how to excess admin account from user account in window 7…..????

  3. SEO contest at IIIT hyderabad is an amazing contest by IIIT hyderabad to check skills of bloggers.

Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More in Beginner Hacking, Tips n Tricks, Windows Hacking
How to reset windows password, windows password unlocker, windows password reset disk
Windows Xp/7 password reset disk | Windows password unlocker

what is phishing | how to hack an email account | learn to hack | how to hack
Phishing attack tutorial | What is Phishing | Phishing scam