1. Create Text Document
2. Copy and paste this code in.
3. Edit the part of the code that says "Your-Password-Here" and replace it with a password of your choice.
4. Save as "Locker.bat" and make sure the "Text Document" bar is dropped down and save as "All Files".
5. Double click to create the locked folder and drag what you want into it.
6. Double click the file again to lock the folder and type in Yes or yes into the control panel and hit the enter key.
If you want to unlock the folder all you gotta do is double click the bat file and type in your password.
2. Copy and paste this code in.
- 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(Yes or No)
set/p "cho=>"
if %cho%==Yes goto LOCK
if %cho%==yes goto LOCK
if %cho%==no goto END
if %cho%==No 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%==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
3. Edit the part of the code that says "Your-Password-Here" and replace it with a password of your choice.
4. Save as "Locker.bat" and make sure the "Text Document" bar is dropped down and save as "All Files".
5. Double click to create the locked folder and drag what you want into it.
6. Double click the file again to lock the folder and type in Yes or yes into the control panel and hit the enter key.
If you want to unlock the folder all you gotta do is double click the bat file and type in your password.