cls @ECHO OFF title Folder Private if EXIST "Compconfig Locker" goto UNLOCK if NOT EXIST Private goto MDLOCKER : CONFIRM echo 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 Private "Compconfig Locker" attrib + h + s "Compconfig Locker" echo Folder locked goto end : UNLOCK echo Enter password to unlock folder set / p "pass =>" if NOT% pass% == YOUR_PASSWORD goto FAIL attrib -h -s "Compconfig Locker" ren "Compconfig Locker" Private echo Folder Unlocked successfully goto end : FAIL echo Invalid password goto end : MDLOCKER md private echo Private created successfully goto end : End