Computer trivia

All I know about computers

&
 

Nov 02 2008

Lock folders in Windows

Published by rakshit at 11:26 pm under Computer Security, Tips Edit This

There are hundreds of softwarez that can lock a folder in windows with a user defined password. However there is also a way to lock a folder without using any additional software. This can be done by changing certain attributes from the command prompt window. Here are the steps.

- Open the command prompt window

- Type “attrib +s +h  D:\naughtyAmerica”

This would hide the folder naughtyAmerica in the D drive and this cannot even be seen in search results in Windows.

To unhide the folder type  “attrib -s -h  D:\naughtyAmerica”

Replace the path given above with the path of the folder you want to lock form others.

There is a disadvantage with this method. If someone knows that such a  folder exists  and also its name, he can get to see the contents of the folder by typing in the entire path in the address bar of windows explorer. If in the above example, someone knows that such a folder exists, he will not be able to see the folder in the D drive but he can get to see the contents of the folder by typing “D:\naughtyAmerica” in the address bar.

Possibly-related Articles:                                        (auto-generated)

Comments RSS

Leave a Reply

You must be logged in to post a comment.
Not A Member? Register for Free!

Some Today.com contributors may have received a fee or a promotional product or service from a manufacturer for promotional consideration, while others receive no consideration at all. Each contributor is responsible for disclosing any such promotional consideration.