Protecting your files is crucial, especially when sharing your device or working in a public space. This guide will walk you through two effective methods to lock or password-protect your folders on Windows 10 and Windows 11. Whether you prefer to do it without any additional software or with the help of free software, this guide has you covered.
Key Takeaways
- Method 1: You can password protect folders without downloading software by creating a batch file using a pre-written script.
- Method 2: Using Wise Folder Hider software adds an extra layer of security, including multiple password protection options.
- Always keep your passwords safe; if forgotten, recovery options may require purchasing premium features.
Method 1: Password Protect Folders without Software
This method involves creating a simple script that turns a folder into a protected locker. Follow the steps below to password-protect your files without installing any additional software.
Steps to Password Protect Folders without Software:

- Step 1: Create a Folder
Start by organizing the files you want to protect into a folder on your desktop.

- Step 2: Create a Text Document
Inside the folder, right-click on an empty space, select “New,” and then choose “Text Document.” Click “OK” to create it.

- Step 3: Insert the Script
Open the text document and paste the following script:cls @ECHO OFF title Folder Locker if EXIST "Locker.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Locker goto MDLOCKER :CONFIRM echo Are you sure u 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 "Locker.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "Locker.{21EC2020-3AEA-1069-A2DD-08002B30309D}" echo Folder locked goto End :UNLOCK echo Enter password to Unlock folder set/p "pass=>" if NOT %pass%== ENTER_YOUR_PASSWORD goto FAIL attrib -h -s "Locker.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Locker.{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

- Step 4: Set a Password
In the script, find the line that saysif NOT %pass%== ENTER_YOUR_PASSWORD goto FAIL
. ReplaceENTER_YOUR_PASSWORD
with your chosen password. For example, use “mem” as the password.


- Step 5: Save the Document as a Batch File
Click on “File,” then “Save As.” In the “Save as type” dropdown, select “All Files,” and name your file “PasswordProtect.bat”. Make sure the “.bat” extension is included.

- Step 6: Run the Batch File
Close the text document and double-click the “PasswordProtect.bat” file. This action will create a new folder named “locker.”

- Step 7: Move Files into the Locker Folder
Drag or copy the files you want to protect into the “locker” folder.

- Step 8: Lock the Folder
To lock the folder, double-click on the batch file again. A command window will appear asking if you want to lock the folder. Press “Y” and hit “Enter.” The folder will disappear, effectively hiding your files.

- Step 9: Unlock the Folder
To unlock the folder, double-click on the batch file again and enter your password. The folder will reappear with all of your files intact.

Important Note: If someone with technical knowledge finds the batch file, they could edit it to find or change the password. This method provides basic security but isn’t foolproof.
Method 2: Using Wise Folder Hider Software

If you’re looking for a more secure way to protect your files, Wise Folder Hider offers an intuitive option. This free software hides your folders and files with password protection, making it much more difficult for unauthorized users to access them.
Steps to Use Wise Folder Hider Software:

- Step 1: Download Wise Folder Hider
Visit the Wise Folder Hider website and click on the “Free Download” button. Once the file is downloaded, click to open it and begin the installation.

- Step 2: Install the Software
During installation, agree to the terms and click “Install.” Once the installation is complete, uncheck the box for “View User Guide” if you don’t need it, but keep the “Launch Wise Folder Hider” option checked. Then, click “Finish.”

- Step 3: Set a Master Password
The first time you launch Wise Folder Hider, you’ll be prompted to set a master password. This password will be required to access the application itself. For example, use “mem123” as your password.

- Step 4: Hide Files and Folders
To hide a folder, simply drag and drop it into the Wise Folder Hider window, or click on the “Hide File” or “Hide Folder” button within the app. Once you hide a folder, it will no longer be visible in File Explorer.


- Step 5: View and Manage Hidden Files
To access your hidden files, open Wise Folder Hider, enter your master password, and select the file or folder you want to view. Click on “Open” to reveal the contents. When you close the folder, it will become hidden again.

- Step 6: Add Extra Password Protection
For more security, you can set an additional password on specific folders. Select the folder inside Wise Folder Hider, click on the dropdown arrow next to the folder, and choose “Set Password.” You can set a different password for this folder, such as “memstech.”

- Step 7: Close and Reopen the Program
When you close Wise Folder Hider, your hidden files remain invisible. To access them again, you’ll need to relaunch Wise Folder Hider and enter your master password. If you’ve added secondary passwords to specific folders, you’ll need to enter those as well to view the contents.

- Step 8: Recovering Forgotten Passwords
If you forget your master password or the secondary password for a folder, Wise Folder Hider offers a “Forgot Password” option. However, this feature requires an upgrade to the pro version of the software.

- Step 9: Removing a File or Folder from Wise Folder Hider
If you no longer want to hide a file or folder, select it in Wise Folder Hider, click on the dropdown arrow, and choose “Unhide.” The folder or file will be restored to its original location on your computer and will no longer be hidden.
Key Features of Wise Folder Hider:
- Double Layer Password Protection: You can set both a master password and secondary passwords for individual folders.
- User-Friendly Interface: Wise Folder Hider is easy to use, even for those who aren’t very tech-savvy.
- Free vs. Pro Version: While the free version offers basic hiding and protection, the pro version provides advanced recovery options and additional features.

Conclusion
Both methods provide useful ways to protect your files, whether you prefer a simple batch file or the enhanced security of Wise Folder Hider. If you’re dealing with sensitive information, consider using Wise Folder Hider for its additional layers of protection. Remember to keep your passwords safe and make regular backups of your protected files.
FAQs
How secure is the batch file method for protecting folders?
The batch file method offers basic security by hiding folders, but it’s not entirely foolproof. A tech-savvy individual could locate and modify the batch file to gain access.
Can I recover my forgotten password in Wise Folder Hider?
Yes, but only with the pro version of the software. If you’re using the free version, you will need to remember your password or reinstall the software.
Does the batch file method work on external drives?
Yes, you can use the batch file method on external drives like USB flash drives or external hard drives. Just ensure the script and folder remain together on the drive.
Can I protect multiple folders with Wise Folder Hider?
Yes, you can hide and protect multiple folders simultaneously with Wise Folder Hider. Each folder can have its own password for added security.
Is Wise Folder Hider free?
Wise Folder Hider is free for basic use, but additional features like password recovery require a paid upgrade to the pro version.