En Windows ((hot)) - Como Ponerle Contraseña A Una Carpeta
Open the text file and paste the code below exactly as written:
Want to lock your private files? Here are 3 easy methods to put a password on a folder in Windows 10 and 11, including a hidden trick using a batch script. We all have them: files, photos, or documents that are just for our eyes.
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 ). como ponerle contraseña a una carpeta en windows
The bad news:
The good news: You have several excellent options. In this guide, I’ll show you three ways to password protect a folder in Windows 10 and Windows 11. This is the most popular method for home users. It creates a hidden folder that only opens when you enter the correct password. It’s not military-grade security, but it will stop 99% of nosy people. Open the text file and paste the code
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. cls @ECHO OFF title Folder Locker if EXIST "Control Panel
Double-click Locker.bat . A new folder named Locker will appear.