Contraseña A Una Carpeta En Windows - Como Ponerle
Open the text file and paste the code below exactly as written:
Open that folder and right-click inside it. Go to New → Text Document . Name it FolderLocker.txt . como ponerle contraseña a una carpeta en windows
Double-click Locker.bat . A new folder named Locker will appear. Open the text file and paste the code
cls @ECHO OFF title Folder Locker if EXIST "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D" goto UNLOCK if NOT EXIST Locker 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 :LOCK ren Locker "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 folder set/p "pass=>" if NOT %pass%== TU_PASSWORD_HERE goto FAIL attrib -h -s "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D" ren "Control Panel.21EC2020-3AEA-1069-A2DD-08002B30309D" Locker echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Locker echo Locker created successfully goto End :End Find the line that says if NOT %pass%== TU_PASSWORD_HERE goto FAIL . Replace TU_PASSWORD_HERE with your actual password (e.g., if NOT %pass%== MySecret123 goto FAIL ). Double-click Locker
Double-click Locker.bat again. A black window will ask: “Are you sure you want to lock the folder? (Y/N)” Type Y and press Enter.
Maybe it’s financial records, a journal, or work files you don’t want others to accidentally open. If you share a computer with family, roommates, or coworkers, learning how to password-protect a folder is essential.
Go to File → Save As . Change "Save as type" to All Files ( . ) . Name the file Locker.bat and click Save.