Search This Blog

Thursday, June 25, 2009

Folder lock using command prompt

To lock a folder in windows XP without any software. Follow the steps below.

1. Make a Folder in any drive.

2. Now open Command Prompt. Set your Drive and Directory where you make your folder.

3. Type "attrib +s +h C:\ajay" without quotes and press enter.
(Here I make a folder in C Drive and name it a).

4. This command will make your folder invisible.

5. To make it visible again type "attrib -s -h C:\ajay".

You can lock any other folder also by changing the location C:\ajay to address of your folder.

6 comments:

  1. lovely!!!!!!!excellent its a magic great

    ReplyDelete
  2. how to lock folder if it is inside another folder of same drive
    Ex-d/video/music/good

    ReplyDelete
    Replies
    1. You can lock any other folder also by changing the location C:\ajay to address of your folder.

      Delete
  3. good work bro, you can also use attrib +r +a +s +h /d:/folder/folder/folder to more secure your folder

    ReplyDelete
  4. If you want to hide D:\linux\newfolder so you have type :
    d: [Enter]
    cd linux [Enter]
    attrib +s +h \newfolder

    ReplyDelete