How to Windows Password Protect Folder [Windows 10/8/7]

There are several ways to create password protect folder that could help you to protect your document credential from illegal or unauthorized access. Here, we are discussing about “Windows Password Protect Folder” in details and providing steps to create password on Windows 10/8.1/8/7 Operating System based device to lock your folder. Let’s starts the discussion.

About Password Protect Folder

If you create password for the folder stored in your computer that means you need to enter a password to see the list of files or documents in that folder. In simple word, we can say that you can protect each files stored in password-protect folder which blocks unauthorized users access or open that folder.

In case if you lose or forgot your password and your files are gone, we can’t assume exactly what went wrong on your end. So, we recommended you to choose strong password for folder as well as for your Operating System that could block attackers or unauthorized users access to your personal files.

We also recommended avoid using password with “Space” because it may create problem with the batch file. However, files stored in your locked folder can appear in “Recent Files List” in various apps like Microsoft Word, Excel, Powerpoint and others applications.

[Tips & Tricks] How to Windows Password Protect Folder?

Procedure 1: Password protect folder on Windows 7

Step 1: Press “Windows + E” keys together from keyboard to open “Windows Explorer”

Step 2: Navigate to folder you want to Password-protect

Step 3: Right-click on it and select “Properties”

Step 4: In the “Properties” window, click on “General” tab and click on “Advanced” button

Step 5: Now, select “Encrypted Content to secure data” and Click on “OK”

Step 6: Finally, click on “Apply” and “Ok” in “Properties” window to save the changes. Your Windows username and password will be used.

Procedure 2: If Windows doesn’t support Password protection, try password protect Zipped Folder

 Step 1: Press “Windows + E” keys together from keyboard to open “Windows Explorer”

Step 2: Locate the files or folders you would like to put into a “Zipped file” or “Zipped Folder”

Step 3: Select “Send To > Zip Folder (Compressed)”

Step 4: Follow the prompt to name and save the folder

Step 5: Now, double-click on “Zipped folder” and select “File > Add Password”

Step 6: Fill out the request information and then click on “Apply” & “OK” to save the changes

You may also read: 6 Ways to Fix zipped folder invalid error: Reasons and Solutions

Procedure 3: Use “Don’t Show hidden files, folders or drivers” settings to Hide a folder (on Windows 7, 8, 10)

Method 1

Step 1: Open “Windows Explorer” and locate the files or folder that you want to hide

Step 2: Right-click on it and select “Properties”

Step 3: Click on “General” tab in “Properties” window and under “Attributes” section, check the “Hidden”

Step 4: Finally, click on “Apply” and “OK” to save the changes

Method 2

Step 1: Open “Windows Explorer” and click on “File” tab

Step 2: Select “Don’t Show Hidden files, folders or drivers” under “Hidden files and folders”

Note: To see hidden files or folder again, repeat the instructions above and click on “Show hidden files, folders, or drivers” option

Procedure 4: Windows 10 Password Protect Folder

Step 1: Open “Windows Explorer” and locate the folder you want to lock

Step 2: Open the folder and right-click in empty area inside the folder and select “New > Text document”

Step 3: Hit “Enter” key after naming the file and you can delete this text file once the locked folder has been made

Step 4: Now, double-click on “Text file” to open and paste the following text given below



title Folder Locker

if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK



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.



ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

echo Folder locked

goto End


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


echo Invalid password

goto end


md Locker

echo Locker created successfully

goto End


Step 5: Now, find the “Your-Password-Here” in the document

Step 6: Then replace “Your-Password-Here” with your password which you want to lock the folder with

Step 7: After that, click on “File Menu > Save as” and select the “All files” option from “Save as type” drop-down menu

Step 8: Change the filename to “FolderLocker.bat” and click on “Save” button

Step 9: Finally, double-click on “FolderLocker” a batch file. The locker folder has been created

Step 10: Now, fill the locker folder with the files or items you want to protect

Step 11: Double-click on “FolderLocker” file to open and press “Y” key from keyboard if it ask “Are you sure u want to lock the folder (Y/N)” and then hit “Enter” key

Step 12: To unlock the folder, double-click on “FolderLocker” to open it and enter “password”. The locker folder is back

Step 13: If you lock folder again, follow ‘steps 11’ and ‘step 12’

You may also read: How to Reset Windows 7 Password without Disk [Steps]


I am sure this article helped on “How to Windows Password Protect Folder”, “How to Windows 10 Password Protect Folder“, “How to password protect zipped folder” with easy steps. You can read & follow the steps/procedures mentioned above to do this. If you have any suggestions or queries, please write on comment box given below.

Give Your Suggestions Or Ask anything..!!