Você está na página 1de 1

cls @ECHO OFF title Desbloquear/Bloquear carpeta oculta if EXIST "NOABRIR" goto UNLOCK if NOT EXIST Oculto goto

MDLOCKER :CONFIRM echo Desea bloquear la carpeta?(S = S / N = No) set/p "cho=>" if %cho%==S goto LOCK2 if %cho%==s goto LOCK2 if %cho%==n goto OPTION2 if %cho%==N goto OPTION2 echo La opcin no es vlida. goto CONFIRM :LOCK2 cls ren Oculto "NOABRIR" attrib +h +s "NOABRIR" echo Carpeta bloqueada. (Presione cualquier tecla para cerrar.) pause > nul goto End :OPTION2 echo No se ha bloqueado la carpeta. (Presione cualquier tecla para cerrar.) pause > nul goto End :UNLOCK echo Ingrese la contresea para desbloquear la carpeta oculta. set/p "pass=>" if NOT %pass%==aqui-password goto FAIL attrib -h -s "NOABRIR" ren "NOABRIR" Oculto echo La contresea es correcta, se ha desbloqueado la carpeta. (Presione cualquier tecla para cerrar.) pause > nul goto End :FAIL cls echo La contresea no es correcta, no se ha desbloqueado la carpeta. goto UNLOCK :MDLOCKER md Oculto echo Se ha creado la carpeta; su nombre ser "Oculto", no le cambie el nombre a la carpeta esto hara que no se puede bloquear. (Presione cualquier tecla para ce rrar.) pause > nul goto End :End exit

Você também pode gostar