Post by Jeet Patel
Here’s a great thing that you all need to know. I was
thinking of this post since last week and here it is. ENJOY!!!!!! Let’s go step
by step.
STEP !:
Open
notepad.
STEP 2:
Now you
need to paste the below code in you notepad file.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo off
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303 09D}" GOTO
UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
:CONFIRM
echo Are you sure you 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-08002B303 09D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303 09D}"
echo Folder Locked.
GOTO END
:UNLOCK
echo Enter password to unlock the Folder :
set/p "pass="
IF NOT %pass% == YourPassword GOTO FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303 09D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303 09D}" LOCK
echo Folder Unlocked Successfully.
GOTO END
:FAIL
echo Invalid Password!
GOTO END
:MDLOCKER
md Locker
echo Folder created.
GOTO END
:END
PAUSE
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
:CONFIRM
echo Are you sure you 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-08002B303
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303
echo Folder Locked.
GOTO END
:UNLOCK
echo Enter password to unlock the Folder :
set/p "pass="
IF NOT %pass% == YourPassword GOTO FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303
echo Folder Unlocked Successfully.
GOTO END
:FAIL
echo Invalid Password!
GOTO END
:MDLOCKER
md Locker
echo Folder created.
GOTO END
:END
PAUSE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![]() |
| Paste in notepad |
Now let us understand the above
code little bit. The word you see “YourPassword” in code is your password. You can
put anything over there as your password. Now you have to save the file with “.bat”
extension that is the batch file.
![]() |
| Save with .bat (BATCH file) |
STEP 3:
Now
you need to run that BATCH file and the command prompt will pop up. It will ask
“You want to create the file or not” You need to press “Y” for YES and “N” for
NO. If you pressed Y it will create a file for you.
![]() |
| Run BATCH file |
STEP 4:
Once
you have created the file you have to set the password for it. So again go and
run the BATCH file. It will ask you to set the password. You have to press Y for positive response and hit enter. As soon
as you hit enter, the folder that you created will disappear. Now you need to
access the folder again. So again run the BATCH file, command prompt will pop
up and will ask for the password.
![]() |
| Setting Lock |
![]() |
| Entering Password |
NOTE: To keep your file safe, you need to place
that BATCH file into some external storage or at some safe place, So that no
one can edit the code and change your password.
Follow on Facebook: Jeet Patel




