How to Password Protect a Folder in Windows
As a Windows user, you may have files or folders containing sensitive or confidential information that you would like to protect. Password protection is a reliable way to safeguard your sensitive files or folders on your computer. Password protection ensures that only authorized users or those with the correct password can access the folder. In this article, we’ll show you how to password protect a folder in Windows.
There are different ways to password protect a folder in Windows, but we will discuss the two most commonly used methods – using built-in Windows features and using third-party software.
Method #1: Using Built-in Windows Features
This method involves using the built-in Windows feature called “File Explorer” to create a new partition or container file, then hiding this file from view, and finally, locking it with a password. Here are the steps to follow:
Step 1. Open the File Explorer by pressing the Windows key and the E key simultaneously.
Step 2. Create a new folder where you want to store your sensitive or confidential files.
Step 3. Navigate to the new folder and right-click on the empty space inside the folder.
Step 4. Select New and Click Text Document. This will create a new text document inside the folder.
Step 5. Rename the text document to whatever name you prefer and change the file extension from .txt to .bat. For example, if you want to name the new file “LockedFolder,” rename the file to “LockedFolder.bat.”
Step 6. Open the LockedFolder.bat file and copy and paste the following text into it:
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 this 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%== 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.
goto End
:FAIL
echo Invalid password.
goto end
:MDLOCKER
md Locker
echo Locker created successfully.
goto End
:End
Step 7. Edit the code and replace PASSWORD_HERE with your desired password. Please note that you should remember this password as you will use it to unlock the folder later.
Step 8. Save the LockedFolder.bat file and close it.
Step 9. Double click on the LockedFolder.bat file to run it, and a Locker folder will be created.
Step 10. Move all the files or folders containing sensitive or confidential information into the Locker folder.
Step 11. Double-click on the LockedFolder.bat file again to run it, and you will see a confirmation message asking if you want to lock the folder. Type Y or y, and press Enter to lock the folder.
Step 12. The Locker folder will now be hidden. To access the folder, double-click on the LockedFolder.bat file, type your password, and press Enter.
Note: This method uses a BAT file that can easily be edited or deleted. Ensure to keep it out of reach of unauthorized users.
Method #2: Using Third-Party Software
If you find the first method difficult to use, you can use third-party software such as 7-Zip, WinRaR, or VeraCrypt to password protect your folder. Here are the steps to follow:
Step 1. Download and install any of the password protection software.
Step 2. Create a new folder where you want to store your sensitive or confidential files.
Step 3. Open the software you installed and navigate to the new folder you created.
Step 4. Right-click on the folder and select “Add to archive” on the options menu.
Step 5. Set your password in the “set password” field when prompted.
Step 6. The software will create a new file with a protected archive extension. A password will be required to access the files or folders.
Conclusion:
By using any of the two methods discussed above, you can easily password protect any folder on your Windows computer. These methods can help you keep your sensitive and confidential files or folders safe and out of reach of unauthorized users.