How to lock folder without using any software ?

Here is the Trick to lock any folder in the computer without using any third party software or application.

Folder Lock
Sometimes we want to lock folder to hide our private files and personal data from other users of computer. We would find many software in market for folder lock but many of them not works or if works then they require registration which is not possible without money or cracks. So here is a trick to lock folder i.e. make a folder lock which is very easy to use and is safe.

To make the folder lock follow these simple steps : 
  • Open notepad.
  • Copy and paste the following code into notepad :
@echo off
Title folder locker
If exist "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}" goto unlock
If not exist locker goto mdlocker
Echo are you sure u want to lock the folder(y/n)
Set/p "cho=>"
If %cho%==y goto lock
If %cho%==y goto lock
If %cho%==n goto end
If %cho%==n goto end
Echo invalid choice.
Goto confirm
Ren locker "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}"
Attrib +h +s "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}"
Echo folder locked
Goto end
Echo enter password to unlock folder
Set/p "pass=>"
If not %pass%== type the password here goto fail
Attrib -h -s "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}"
Ren "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}" locker
Echo folder unlocked successfully
Goto end
Echo invalid password
Goto end
Md locker
Echo locker created successfully
Goto end
  • In this code ( line 23 ), there is written “type the password here” ( without quotes ), just write the password needed in place of “type the password here”.
  • Save it as locker.bat.
  • Now double click on locker.bat. This will create folder named "locker" automatically. After this copy and paste the contents to be locked inside the locker folder and run locker.bat again. Now it will ask to lock the folder. Just type “y” ( without quotes ) and press enter.
  • The folder now get disappeared which means folder is locked. Now no one can see the files of the locked folder.
  • Now to unlock the folder, double click on locker.bat. It will ask the password, enter the password and press enter. The folder would appear.
 So this is a simple trick to lock folder without using any software.

You may like these posts