How to Lock a Folder Without Using Any Software

How to Lock a Folder Without Using Any Software

There are simple steps to make password protected folder without using any software. Follow these steps and enjoy!


STEP-1: Open Notepad and Paste the following coding in it.
STEP-2: Choose desired password by changing PASSWORD in below given code.
STEP-3: Now Save As this file and name it as Locker.bat
STEP-4: Just Move Locker.bat file in the folder where you want to create the hidden or password protected folder and then open it.
STEP-5: Then Copy all of your that you want to lock in newly created folder naming Private.
STEP-6: Again open Locker.bat and type "Y" to Lock or "N" To Exit. then press Enter.
STEP-7: If you want to Open folder, launch Locker.bat and enter password and press Enter.


Code to Password Protect a Folder

cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Do You Want To Lock The Folder? Answer In (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...!!
pause
goto CONFIRM
:LOCK
ren Private "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%==PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked Successfully...!!
goto End
:FAIL
echo Invalid Password...!!
pause
goto end
:MDPrivate
md Private
echo Private Created Successfully...!!
pause
goto End
:End