HOW TO FOLDER LOCK USING NOTEPAD
1. Open Notepad file.
2. Copy the below code and Paste it in notepad.
cls
:End
@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%==hitesh 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
In the above batch code we added password is hitesh, and you can change that password.
3. Now save the notepad file as yourname.bat
4. Now a batch file will created in where you saved location.
5. Open that batch file, at the same time you will see Locker folder next Yourname.bat file
6. Now store your personal files like pictures, videos, documents, etc.. in the locker folder
7. Once again open batch file to lock the stored file in folder. Now press Y and press Enter.
8. Now your folder will be invisible and protected. but batch file be there.
When you want to unlock the folder, then again open batch file and enter your password