How to Make a Simple Folderlocker in Windows?

1. Open Notepad.exe
2. Type this in your notepad and save it with .bat extension:
@ECHO OFF 
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK 
if NOT EXIST Locker goto MDLOCKER 
:CONFIRM 
echo Are you serious to lock this 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 +r .\locker\*.* /s /d
attrib +r "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder Locked 
goto End 
:UNLOCK 
echo CONFIRM PASSWORD
set/p "pass=>" 
if NOT %pass%== "Your Password" 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 Folder successfully made 
goto End 
:End

No comments:

Post a Comment