Close or Esc Key

Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

How to lock the folder without any software?

Table of Contents:

  1. How to lock the folder without any software?
  2. Part II
  3. Part III

Submitted By: 

Sometimes when we are working on a shared computer or we have some confidential data that we want to protect it from accessing the other users. A lot of softwares are available for this purpose. But do you know that you can simply create a locked folder in your computer without any software and you will have a key that will be required to unlock that folder. There are two of methods discussed here, to exercise the first one simply follow these steps:
1.      First create a folder in any drive, let’s do as F:/Mouse (It will be better to create a folder with name similar to the name of folders in Control Panel as on clicking the locked folder, it will redirect to the control panel).
 How to create a lock folder in windows1
2.      Create a notepad (or any other text editor) file and write the following code in it


ren Mouse Mouse.{21EC2020-3AEA-1069-A2DD-08002B30309D}


            Name the file as “loc.bat” and save it in the same drive.
3.      Now to create another batch file, open a text file and put the following code:


ren Mouse.{21EC2020-3AEA-1069-A2DD-08002B30309D} Mouse


            Name the file as “key.bat” and place in the same directory.
 How to create a lock folder in windows2


i like it............


Very cool...

i like it




wow! imma try this thx

it works yarr


its greate..................


Its Working but not relaible

yaa... not reliable....


but the thing is if anyone knows this trick he/she can simply change the extension to text and see the password or even edit it. 





like it too.......................


gud work ... n really hlpfulll


gud work ... n really hlpfulll


yes it's good job 

Really helpful...........Thanx...


if any other user deletes the locker.bat  file in the second method, then wat is the solution.....give reply as soon as possible


save this file at secret place like a in pendrive, mobile, external harddrive etc.....



its really nice

i like it.............


key and loc type method not working but long code method superbly working




it doesnt work properly. after locking file open after double click on data file.

ghanta kuchh nahi hua

karna nhi aata hoga.... hehehaha......

It will be true that lot of softwares are available for this purpose..................................]]>Custom software development]]>

This does NOT work in Windows7...


Furthermore its just a trick and anyone knowing what you are doing can revert it back!!


Also, batch files are human readable and anyone can open and read the code and even make changes to it... (everyone can see your password as it is in plain text)...


It would be better if you can come up with a software written  in C/C++ or maybe in .NET and use some kind of hashing technique (such as MD5 or SHA1) for your password!!


Anyways, good trick though.

It's amaging... man !

Its cool..........

the folder is visible when unchecking "Hide protected operating system files" in folder option. So not very good.......

 I actually found a small leakage in this article Locker construction of second technique, because In the second technique you would actually set a password to unlock the file and you are prompted to enter the password while you unlocking that Locker folder using that windows batch file named "locker.bat".... what I'm coming to say is create an another one batch file named "123.bat" and copy, paste the following command in it and save the file. 

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

now just double click on the file 123.bat Now your Locker file would be unlocked without any password.....


i am just alert you about the way people can hack into your folder without even knowing your original password.... Is there any way  to improve the security level of this technique????? Reply me without fail..

My folder is not locking. Can any body please tell me when and how it works?


Same here my folder is not locked can anybody tell me about it

Second methods works real fine, but the primary one didnt worked out in my PC. Might be due to the reason that I am using win 7 and he was using win XP.
Now the loophole in this thing is that when anybody know the location of this locker batch file, then he can easily edit this document and can change the password without your acknowledgement and can open the file.


well thanks for the information.

not applicable in window 7.


i have locked the folder with the above steps but now i am unable to open the folder, how to open the locked folder.and unfortunately i have deleted th bat files in that folder pls  help in this regard


There is no any lock in first mwthod so any one can access and delete our folders.

What should do in this case?


kya aap mujhe bata sakte hai ki ye upper wale number kya hai aur inhe kaise pata lagate hai ek folder ya mouse ke liye.

Thank you in advance.


Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Search Engines will index and follow ONLY links to allowed domains.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.