Tuesday 9th of February 2010

How to create a locked folder in Win XP

November 16, 2008 by Ivan  
Filed under Articles, Windows Tips

To create a locked folder we need to create two batch files. The first batchfile will “lock” the folder (actually it will turn the ordinary folder into a link to the Control Panel using an address code), and the other oneĀ  will “unlock” it. When someone tries to access that folder, he will be redirect to Control Panel(we can in fact type in any address code so that the user could be redirected to wherever we want). You should hide these batch files, especially the second one.

1. Create a folder, that you will use to store your protected data. For this example, I created a folder called “locked”, and put that folder in My Documents.
create a locked folder

2. Open Notepad and copy this code ren “FOLDERNAMEFOLDERNAME.{21EC2020-3AEA-1069-A2DD-08002B30309D}
“FOLDERNAME” change in to name of your folder, in this example “FOLDERNAME” is locked.My code looks like this ren locked.{21EC2020-3AEA-1069-A2DD-08002B30309D} locked
Save notepad file like lock.bat in My Documents. In option Save as Type, select All Files

create a locked folder

3. Open another notepad file and copy this code ren FOLDERNAME.{21EC2020-3AEA-1069-A2DD-08002B30309D} “FOLDERNAME” , Save file as in Step 2, just choose a different filename , like unlock.bat

After this we can see in My Documents something like this:create a locked folder

If we open (double click) lock.bat our folder will turn into a link to Control Panel, and the files will not be visible. until we use unlock.bat

create a locked folder

Here is video guide



Best of PC Hacks

Related Posts



You can get our articles in your email inbox each day for free. Just enter your email below:

FeedBurner

Comments

8 Comments on "How to create a locked folder in Win XP"

  1. jack on Wed, 3rd Dec 2008 5:25 am 

    this doesnt work for me
    i dont know why
    i tried it like a million times already!!

  2. Ivan on Wed, 3rd Dec 2008 11:14 am 

    it should work…I’ll create an additional video guide…maybe that would help

  3. Ivan on Sat, 6th Dec 2008 1:17 am 

    Particular part of post was unclear explained, i change it, also wideo guide is created.

  4. Cliffdrew on Sun, 21st Dec 2008 11:19 am 

    hi ivan, i already made some test. This tutorial works but the folder was renamed to, ex. “foldername”.{21EC2020-3AEA-1069-A2DD-08002B30309D} which is quite visible to anyone. But the video shows that the folder was not renamed after running the lock.bat and it remain as it is. How to do that?

  5. Sam on Fri, 3rd Apr 2009 5:25 am 

    doesnt work for me either.
    am kinda confused about how it would work aswell because isnt
    ‘ren’ the rename command?

  6. pokewak on Fri, 1st May 2009 9:47 am 

    ty , its work.. even a kindagarden kid know how after watch the TUT

  7. t3h1337g33k on Thu, 9th Jul 2009 2:07 pm 

    It’s a simple trick, and yes, this is the rename command. Adding that extension to any folder turns it into a link to the control panel. It’s not really locked perse(anyone with technical knowledge could rename the folder from the command prompt), but still is a neat trick to keep the kiddies out of the pr0n collection or whatever. Not sure why it doesn’t work for you guys. Did you remember to save as “All files” and add the .bat extension to make it a .bat file? Also, don’t use those quotes in the folder name and remember to stick a dot between the folder name and the address code.

  8. devil on Fri, 29th Jan 2010 6:44 pm 

    thiz spell wrks… z ther smfin that can b used to control access conrols from ne diff folder… cz i cant hide the 2 so ufamiliar files (lock and unlock.bat)…
    otherwz..this iz kooooll

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!