MY TECH BLOG

Google+ Badge

Saturday, 22 June 2013

How to hide files/folder using cmd

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 .

Steps:-
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.
Explanation:
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.