Lock/Hide Your Folder in Windows XP without Any Software

Posted by

Sometimes you have some data you want to save from your friends, you dont want to use any Folder lock software. Then in that case what will you do?

Well here is a simple solution. Suppose you have a folder “TEST”, and you want to lock it

Follow the instructions below.:

1. First try it out on an empty folder in case something goes wrong. So first create a folder in drive C , for example name it as “secret-files” without the quotes.

2. Next, open your command prompt ( Start > Run > type “cmd” in the Run box without the quotes )
3. Within the command prompt, type “attrib +s +h C:secret-files” ( without the quotes )

4. This command will make your folder completely invisible and it can not be seen even in hidden files and folders. Try search for the folder, I am sure it returns no result. It’s cool right?
5. To make the folder visible again type “attrib -s -h C:secret-files”
6. And of course you can lock other folder too, by changing the location C:secret-files to address of your folder.

  1. kavya Thanks for sharing old trick,you can also do this with simple steps as below

    Suppose you want to lock the folder games in d: which has the path D:Games.In the same drive create a text file and type
    ren games games.{21EC2020-3AEA-1069-A2DD-08002B30309D}
    Now save this text file as loc.bat

    create another text file and type in it
    ren games.{21EC2020-3AEA-1069-A2DD-08002B30309D} games
    Now save this text file as key.bat

    Now you can see 2 batch files loc and key.Press loc and the folder games will change to control panel and you cannot view its contents.Press key and you will get back your original folder.

    try it out!!!!!!!

  2. hello this command only hides the folder but not it can be viewed by setting the folder options to view the hidden folder options you can see the folder.