Can I password protect a folder in Windows 10/8/? The answer is yes. You can password protect your folder with or without software. The recommended way to password protect your folder is using EaseUS LockMyFile. With this software, you can password protect your folders easily.
Sometimes, when you share files with your friends and colleagues, you might need to keep some documents confidential. But you may ask yourself - can I password protect a folder on a Windows 10/8/7 computer? You can get the answer here.
Yes, you can password protect your folder no matter which version of Microsoft Windows you are running. Using a password to protect a folder means that you need to enter a password in order to see the list of documents in the folder. You can also password-protect individual files either in a password-protected folder or in a folder without password protection. The procedure is the same for files and folders.
There are several ways to password protect a folder in Windows 10/8/7. You can protect a folder without software or using the software. Here are the methods here.
Applies to: Windows 11/10/8/7
Estimated time: 1~2 min
You can password protect your data directly with Folder Properties. Follow the steps below to password protect your data.
Step 1. Right-click the folder you want to protect, and select "Properties".
Step 2. Go to "General > Advanced..." Then, check "Encrypt contents to secure data" and click "OK".
Step 3. A notification window would pop up telling you to back up your file encryption key. Click "Backup now" and back up the encryption key.
This optional step can be skipped but you may take the risk of losing access to your encrypted files if you forget the password.
Applies to: Windows 11/10/8/7
Estimated time: 3~4 min
This method works well on different versions of Windows. But it takes a longer time to make it. Follow the steps to protect this folder with a .bat file.
Step 1. Open the target folder, right-click an empty area and select "New". Select "Text Document" and open the file.
Step 2. Copy and paste the following text to the new text document:
cls @ECHO OFF title Folder Locker Advertisement if EXIST "Control Panel.{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 "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%==Your-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 |
Step 3. Find "Your-Password-Here" and replace it with the password that you want to lock the folder with. For example: MK21*)6ee73
Step 4. Then, save the file as a .bat file.
Step 5. Click the FolderLocker file, type Y in the command prompt window, and hit Enter to confirm that you want to lock the folder.
You can drag or move all the files that you need to protect into the Locker folder. If you want to unlock the folder, click the "FolderLocker" file, enter your password in the command prompt window, and hit "Enter".
Applies to: Windows 11/10/8/7
Estimated time: 2~3 min
If you have downloaded and installed 7-Zip or other compression tools, you can password protect a folder when you are compressing it. Here are the detailed steps:
Step 1. Right-click the folder you want to protect and choose "7-Zip > Add to Archive".
Step 2. Set the encryption settings, including format, compression level, etc. Then, enter the Encryption password and Encryption method.
Applies to: Windows 11/10/8/7
Estimated time: 1~2 min
This method only takes simple steps to protect your folder with a password. As a lightweight software, EaseUS LockMyFile can hide, lock, protect, and encrypt files, folders, or even a whole hard drive on Windows 10/8/7.
Check the following steps to learn how to password protect a folder easily.
Step 1. Launch EaseUS LockMyFile, enter the valid email, and set password to register.
Step 2. Click Protecting File under the Local Disk. Select Protect File(s) ,Folder or drive from the right panel.
A. Add file(s) or folder from the specific location.
B. Click on the Protect Drive to add drive you want to protect. Select drive and click OK.
Step 3. Check and confirm the files, folder, and drive that you want to protect.
Notes:
If you want to unprotect the selected files, folder, or drive, tick the target data and click on the Unprotect button.
Overall, you can not only protect your folder with codes but also have several ways to do it. Among these solutions, EaseUS LockMyFile is my recommendation. With this method, you can protect your folder very easily and quickly.
Related Articles
Protect Your Data with 10 Best Folder Encryption Software for Windows 11/10
How to to Encrypt a PDF with Password for Email | Free
3 Ways to Encrypt Files or Folders on Windows 7
How to Encrypt a File or Folder with a Password on Windows 10/Windows 11