How to lock folder without using any software ?

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 :
 Cls
@echo off
Title folder locker
If exist "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}" goto unlock
If not exist locker goto mdlocker
:confirm
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
:lock
Ren locker "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}"
Attrib +h +s "control panel.{21ec2020-3aea-1069-a2dd-08002b30309d}"
Echo folder locked
Goto end
:unlock
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
:fail
Echo invalid password
Goto end
:mdlocker
Md locker
Echo locker created successfully
Goto end
: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.


0 comments:

Post a Comment

Kindly note : The comment should be in English and must not contain any Link.
Spam comments would not be published.


For any help or assistance, you may directly Contact Us.

◄ All Rights Reserved Worldwide | Copyright © 2011-2015 Top Tricks And Tips
Privacy Policy | Terms and Conditions | Disclaimer | FAQ | DMCA | Become our Partner