set foldername=god set targetname="rugal" set password="123456"
cls @ECHO OFF title Folder %foldername% if EXIST %targetname% goto UNLOCK if NOT EXIST %foldername% goto MDLOCKER
:CONFIRM echo Are you sure you want to lock 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