Flag This Hub

How To Hide Files Or Folders Using Command Prompt

By


Code To Hide File/Folder

attrib +s +h "E:\My Movies\hubpages.txt"

Above "E" refers to the drive letter in which the file/folder is stored. "My Movies" refers to a folder in drive "E" where the file to be hidden is stored. "hubpages.txt" is the file you want to hide.

PLEASE READ THE STEPS BELOW FOR BETTER UNDERSTANDING :-) !!

Step 1

Copy the Address of your desired folder or file to be copied.
For example: I want to hide a folder named "My Movies" which is in "E" drive.
So its Address will be; "E:\My Movies" (without quotes)

Step 1
See all 7 photos
Step 1

Step 2

Then go to Start, select Run, and type "cmd" in it. Press Enter.

Step 2
Step 2

Step 3

After Command Prompt Opens, Give the command as follows :
attrib +s +h "E:\My Movies"

Step 3
Step 3

Step 4

After giving the command, Press Enter. Your Command Prompt will look like
this for a very few seconds:

Step 4
Step 4

Step 5

And then it will proceed to a new line waiting for a new command to be given to it!

Step 5
Step 5

Step 6

Then Open My Computer and go to E Drive

Step 6
Step 6

Step 7

"My Movies" folders in not seen in the above image as it is hidden...!! No one
will able to view it as it is hidden. But if you want to access it again simply open
"My Computer" and type the address of the folder you have hidden, which in this
case is "E:\My Movies" (without quotes)

Step 7
Step 7

Comments

MightyAkshay 7 months ago

@conquesto

type "color 0a" in cmd and press enter. BOOM...!!! You get the same color which i have got..!! its so simple

conquesto 7 months ago

Thanks a lot!! :)

But i have 1 query,,:

How did u change the color of the text in cmd....???

EminemBuddy001 7 months ago

Thank You....!!!

Musicbuddy 7 months ago

it worked... it's Awesome

Anoymous 7 months ago

Nice Post.... Thnxx it helped me alot to hide my games collection from my dad who would have had it deleted for sure... Thnxx Once Again :-)

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working