- Create your own Folder Lock in FEW simple steps.
Open Notepad and copy the below code.
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 your 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
Step #2:
Save as locker.bat.
Thats it !!....your folder lock is ready for use !!
Now, How to use this customized Folder lock:
Step #1
First things first, right click the locker.bat file you just created and Open With "Notepad" (or with any of the editing tools you have.). Find the line:
Approximately 24th Line in the code. Type in your password where it says "type your password here" (without quotes). For Example:
if NOT %pass%==type your password here goto FAIL
if NOT %pass%==sevenwonders goto FAIL
Here, sevenwonders is the password. Save it.
Customising is Over !!
How to use the Customised Folder Lock:
Step #1
When you run the Locker.bat file for the first time, it will automatically create a folder named "Locker" in present working folder.
Step #2
Copy the important files in the Locker Folder.
Step #3
Double Click on the "locker.bat" file again. It will prompt you :
Are you sure you want to lock the folder
Step #4
Press Y for Yes or N for No.
Thats it....your Folder is locked.
To unlock the folder follow the below steps:
Step #1
Double Click on the Locker.bat once again. It will prompt you for the password.
Step #2
Enter the password you entered in the locker.bat file earlier while creating the BATCH file.
Step #3
Press Enter...
Your folder is back again !!