How To Password Protect a Folder in Windows 10

Hey friends, with this article, you will learn How to Password Protect a Folder in Windows 10. In this article, we have listed the easy steps guide to password protect folder windows 10. It is an important topic because sometimes we have some private documents, pictures, videos to hide from anyone who touches our system. In that case, mostly don’t know what to do and how to lock a folder on windows 10. So we bring you this article, that will show you how to password protect a folder windows 10 for free.How To Password Protect a Folder in Windows 10

How To Password Protect a Folder in Windows 10

So, here we are going to describe a detailed guide to create windows 10 password protect folder. With below given simple and easy steps you can learn how to Password protect a folder windows 10. And you can do it without wasting your money.

Also Read:- 3 Best Free Password Managers

Steps to password protect a folder windows 10

  1. First of all, Open the folder that you want to be Password protected. And then right click.How To Password Protect a Folder in Windows 10
  2. After that select New. And click on “Text document”.How To Password Protect a Folder in Windows 10
  3. Now Double Click and open the text file.
  4. Once opened, Paste the below given coding there.How To Password Protect a Folder in Windows 10
    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 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
  5. Now find the sentence “Your-Password-Here” from the coding that you have pasted there.How To Password Protect a Folder in Windows 10
  6. After that replace the sentence “Your-Password-Here” with the password that you want to set for your password protected folder.How To Password Protect a Folder in Windows 10
  7. Then click on the File option. And select “Save as“.How To Password Protect a Folder in Windows 10
  8. Now set “Save as type” option to “All Files“. And set the file name to “FolderLocker.bat“. And then click Save.How To Password Protect a Folder in Windows 10
  9. Now double click the FolderLocker file. And with this, your Locker folder will be created automatically.How To Password Protect a Folder in Windows 10
  10. Its time to fill windows 10 password protect folder with the files or documents which you want to hide from others.
  11. After that go back and open the FolderLocker.Bat file to lock it up.
  12. A window will then open, You have to type “Y” and click enter if you want a password protect folder windows 10. And your folder will be disappeared and your files and documents are safe now.How To Password Protect a Folder in Windows 10

And with this, your folder is successfully locked. These are the ways that show you how to password protect a folder windows 10. Or in simple words, you can say you have learned how to lock a folder on windows 10. And if you want to unlock the locked folder, then follow the steps given below.

Also Read:- How to Block Text Messages on Your Android Device?

How to unlock a Locked folder windows 10

Above you have learned how to password protect a folder windows 10. Here are the steps to unlock a password protected folder.

  1. Firstly, double-click and open the FolderLocker.bat file.
  2. Now enter the password that you have set before for your locked folder.
  3. And then hit enter.How To Password Protect a Folder in Windows 10
  4. With this, you have successfully unlocked the password protected folder.

So these were the steps to unlock the Password protected folder. Follow all the steps carefully to create a password protect folder windows 10 and to unlock the password-protected folder.

A Note To All Readers……

So this is the end of this article, At last, I want to thank you all for visiting this site. Please keep visiting here and keep supporting us. I hope you liked our this article on How to Password protect a folder Windows 10. If so, then please share it with your friends and colleagues on your social media sites. For any query, doubt, suggestion or feedback comment down below in comment section.

Jitender Singh

Jitender Singh, the owner of this site, is a technical expert, SEO expert, YouTubber and a experienced blogger by profession. He basically belongs to a middle class family in Faridabad.

Leave a Comment