0% found this document useful (0 votes)
24 views1 page

Codigo de Carpeta Protegida

This document contains a batch file script that allows a user to lock and unlock a protected folder called "CarpetaProtegida". The script renames the folder to a hidden name and sets hidden and system file attributes to lock it. To unlock, it prompts for a password and if correct will remove the attributes and reveal the original folder name.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Codigo de Carpeta Protegida

This document contains a batch file script that allows a user to lock and unlock a protected folder called "CarpetaProtegida". The script renames the folder to a hidden name and sets hidden and system file attributes to lock it. To unlock, it prompts for a password and if correct will remove the attributes and reveal the original folder name.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CODIGO DE CARPETA PROTEGIDA

cls @ECHO OFF title Folder CarpetaProtegida if EXIST "Control Panel.{21EC2020-3AEA-


1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST CarpetaProtegida goto
MDLOCKER :CONFIRM echo Quiere ocultar la CarpetaProtegida? (S/N) set/p "cho=" if
%cho%==S goto LOCK if %cho%==s goto LOCK if %cho%==n goto END if %cho%==N goto
END echo Invalid choice. goto CONFIRM :LOCK ren CarpetaProtegida "Control
Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "Control Panel.{21EC2020-
3AEA-1069-A2DD-08002B30309D}" echo Folder locked goto End :UNLOCK echo Introduzca
la contrasena para mostrar la CarpetaProtegida set/p "pass=" if NOT %pass%== CAMBIE-
ESTE-TEXTO-POR-SU-CONTRASEÑA goto FAIL attrib -h -s "Control Panel.{21EC2020-
3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-
08002B30309D}" CarpetaProtegida echo Folder Unlocked successfully goto End AIL echo
Invalid password goto end :MDLOCKER md CarpetaProtegida echo CarpetaProtegida created
successfully goto End :End

You might also like