4 Ways to Password Protect Folders in Windows 10/8.1/8/7

You might be one of those individuals who have a PC used by other users at home or. Might possibly you have had the desire of keeping your secret computer files protected from other users of your Laptop or Desktop computer. Luckily, Windows 10 allows you to hide your confidential data by password protecting that particular file. Best of all you don’t need the help or buy any third software utility, rather your Windows 10 allows you doing it inside its interface. You can also create a new user account if you don’t want to lock your folders with a password, by this that new user wouldn’t be able to log in and check your stuff.

4 Ways to Password Protect Folders in Windows 10/8.1/8/7

Today, I will be guiding you to protect folders in Windows 10. Though it’s a lengthy process, once you go through, you’ll get used to it. Follow the steps that I have explained below with relevant images.

#1: Do it with Folder Protect Tool [Easy Method]

The quickest way to protect your folders from unauthorized access is to use “Folder Protect” tool. It does not only protect your files and folders but the entire drive, any app or mask currently present in your PC. It is a paid tool, but you can try its trial version initially for your satisfaction. Later, you can upgrade to the paid version. The trial version gives you 15 trials to add or access your folders in the Folder Protect tool. Here is how to use it.

Click “Here” to download the tool.

Now click the downloaded file to start the installation process.

It is done with a few clicks only.

Folder Protect Tool

Now launch the tool, it will ask you to set a password to access the files and folders. Set the password you can easily remember.

Password Option

Once you see the Folder Protect interface, just click the “Add” option.

You will see the folders list in the left pane. Select the folder and click “Add” option ahead to add the folder in the protected tool. Now, you need to select the “Protect” option to apply for the protection on the folders you have added.

Add & Remove folders

It will show you the list of all folders you want to keep away from the prying eyes.

list of secured folders

That’s all guys! Have a sigh of relief that you have protected your important folders from the access of others.

#2: Alternative Tool

1: Download this tool and install it, it’s a small tool of 3MB only.

2: Run it and set a password on it, you will be required the password every time you’ll log into this tool.

3: Simply drag and drop your desired files or folders on its interface and press “Lock and exit”. It will hide your folder and nobody will be able to open it without entering a password in the tool.

Protect Folders in Windows with Software

#3: Manual Way

1) Firstly locate the folder where your important data is saved. This folder can be on any drive or even on the Desktop.

locate folder

2) Now right click anywhere inside the folder, and from the context menu, point the mouse to “New” option.


3) Now click on the “Text Document” from the sub-menu. This will create a new .txt file within the folder.

create text document

4) Next open the text file. Don’t worry about renaming this file, you can do that later.

open text file

5) Now copy the below code, and paste it inside your text document.



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%==Enter-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


paste code

6) Locate “Enter-Password-Here” inside the text file in which you pasted the above code. You can do this manually, or through “CTRL+F” command to search for the relevant line within the code.

password here

7) Once located, you need to replace this line with your password.

replace password

8) Now save this file by going to File>Save As.

save as

9) A new dialog box will open asking you to name the file. Here you need to click on “Text Documents (*.txt)” menu bar. You can find it next to the “Save as Type” option.

save as type

10) Here from the drop-down, choose “All Files”.

all files type

11) Next rename the files with name “FolderLocker.bat” and click on “Save”.


12) This will generate a “.bat” file within the folder. Now, double-Click to open this file.

open folder locket bat

13) You will notice some change has occurred. This is actually the protection been enabled on that folder. To verify that the locker is successfully generated, you will see a new folder named “Locker” within your own folder. See the below image.

locker folder

14) Now that the locker is generated, next we have to drag and drop the files inside the locker to protect them with a password access.

drag files to locker

15) Once you have dragged and dropped all the relevant files in the locker, it’s time to activate the password on the “Locker Folder”. You have to open the “FolderLocker.bat” file that we generated.

double click

16) Next type “Y” into the screen and hit Enter. Now, the Folder Locker windows will disappear along with the locker. At this stage, your files are completely safe, and no unauthorized person can access them.

type Y

17) Of course, you need to unlock the folder for personal use. To unlock, again open the “FolderLocker.bat” file.

18) It will request you to enter the password that you entered in Step 7. After entering your password hit Enter, and this will unlock your files.

enter password

19) Upon entering the password, the “Locker” folder containing your secret files will again show up. Now you can access the files again. To lock them, repeat Step 16.

#4: LockDir Tool

1: Download this folder protector file.

2: Once downloaded, copy and paste the lockdir.exe file in the folder which you want to lock. Note here that it will lock all of the files and folders in which it is located.

pingzic main

locate lockdir


3: Now, double click on the Lockdir.exe program. A pop up box will open asking you to Run or Cancel the operating. Tap on Run.


4: On the next window, type in the password and finally click on Protect. This will lock your files and folders with the password. You can also click on the double-arrow button, that slides to expand the window. Here you can type a password hint and also your email to retrieve the password in case you forgot.

protect pass

5: To unlock your files and folders, double click on Lockdir.exe application and type in the password you gave. Don’t forget to choose the “Complete” option before un-protecting, else it will lock them again automatically.



I hope this guide was useful, and you managed to protect your important data. Do give your feedback in comments, and let us know if you are facing difficulties at any point.


  1. I don’t see the use of this if anyone can access the password by right-clicking the FolderLocker.bat file. Or am I missing something??

  2. The batch file method is posted all over the www, but nobody explains what is to prevent an unauthorized user from simply clicking on “edit” on the batch file and reading the password.

  3. Exactly my thoughts too. security is beyond just locking up a file. The major issue is the hack-ability of the security methods. If its so easy, then, whats the point?

    Good info by the way!

  4. second method doesn’t work for me. everytime i enter the password to get the file back it dosent return

  5. I am just protecting my documents from my kids, so this would be perfect for me. However, everything was ok until after step 16. My Locker folder is still visible and the .bat file does not open to exe file. so will download the other program instead. Hope it works

  6. So for the manual way of doing it (via creating a .bat file) how do we get around the lock or reset the password if we forget it?


Please enter your comment!
Please enter your name here