@ECHO OFF title Folder Lock if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST LockedFolder goto MDLOCKER :CONFIRM echo Are you sure you want to lock the folder? (Y/N) set/p "choice=" if %choice%==Y goto LOCK if %choice%==y goto LOCK if %choice%==N goto END if %choice%==n goto END echo Invalid choice. goto CONFIRM :LOCK ren LockedFolder "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 the folder: set/p "pass=" if NOT %pass%==YourPassword goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" LockedFolder echo Folder Unlocked goto END :FAIL echo Invalid password goto END :MDLOCKER md LockedFolder echo LockedFolder created successfully goto END :END