how to password protect a folder

We all have certain files and folders that we want to hide so that nobody else who uses our device sees it. It can be anything- Our private pictures, bank documents, confidential papers etc. In such a case, we immediately look out for an option where we can password protect a folder. In this section, we will guide you about how to password protect a folder.

How to Password Protect a Folder in Windows 10?

  1. Right-click inside the folder where the files that you want to protect are located.
  2. Select ‘New’ from the contextual menu.
  3. Click on ‘Text Document’
  4. Hit the Enter Button.
  5. Now double click the Text File to open it
  6. Copy paste the text given below into the text file.



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


7. In the text above find where it is written “Your-Password-Here”

8. Replace “Your-Password-Here” with the password you want to lock your folder with.

9. Click ‘File’ in the Menu Bar and select ‘Save As’

10. Now click on the ‘Text Documents (*.txt)’ menu bar which is next to ‘Save as type’.

11. Select ‘All Files’ option

12. Change the file name to FolderLocker.bat

13. Click ‘Save’

14. Now double click Folder Locker

Your folder is password protected now.

Password Protect Folder Software

You can also password protect a folder by using a software. Here are some tools you can use in Windows.

1- Folder Protector

You have to launch the program and select the folder you want to lock. Now choose a password and click on Protect. Now your folder is encrypted. It is available for free and you have to pay some amount for the pro version to avoid the limitations of free one.  The pro version costs $24.95 which allows you to use 256-bit encryption. Click to download Folder Protector

2- Protected Folder

This program uses a single master password for all the folders you choose to protect. You just need to add the folders you want to protect on the program’s interface. For the first timers, the program is available for free for 20 times without any limitations. After that, you have to pay $20 per year to keep using it. Download Protected Folder here.

3- Kaspersky Total Security

It provides a premium security solution for Windows computers. If you buy the Kaspersky Total Security, you get access to a tool called Data Encryption. This tool encrypts and password protects your folders. It lets you create a data vault in which you can place the files you want to protect. The data inside the vault will not be accessible to anyone who doesn’t have the password. Click for Kaspersky total security 2018 download

4- ESET Smart Security Premium

This top security product developed by ESET lets you create encrypted virtual drives which can only be unlocked using a password. You have to purchase the ESET smart security premium key to get your subscription. Click to buy ESET smart security premium 2018