Script

File & Folder Locker

One Notepad Application then Paste the code. Then change required password 1234 to change your password & save is (.bat) format.

cls

@ECHO OFF

title Folder Lock

if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK

if NOT EXIST Lock goto MDLOCKER

:CONFIRM

echo Mahbub, Are you sure you want to lock the folder(YES/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 Lock “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 attched your documents

set/p “pass=>”

if NOT %pass%== 1234 goto FAIL

attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Lock

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Lock

echo Lock created successfully

goto End

:End

Leave a Reply

Your email address will not be published. Required fields are marked *