How To Password Protect a Folder in Windows 10 with Pictures


Hello, Guys...Today we are Going to lock our Folders in Windows-10...It Makes us To Prevent File Accessing for other Persons.


But just to be safe, you should first try this how-to using files that you can afford to lose, just in case the method doesn't work for you. Also, make sure you're keeping some record, somewhere, of the exact password you're using to lock your folder. 

If you lose the password, your files are gone, and since every computer is different, we can't deduce exactly what went wrong on your end.

Also, yes, the FolderLocker file can be reverse engineered by someone who understands the process, but this isn't meant to keep tech-savvy folks out, just nosy family members who you don't trust.


Tips from readers: 
  • Do not use a password with a space, it may create an issue with the batch file.
  • Yes, files placed in your locked folder can appear in Recent Files list in various apps, such as Microsoft Word. 
Here's how to password protect a folder in Windows 10, so you can fill it with files you want to keep secret — and how to lock it, open it and repeat.

Step-1.  Right-click inside the folder where the files you want to protect are located. The folder you want to hide can even be on your desktop.

Step-2.  Select "New" from the contextual menu.

 Step-3.  Click on "Text Document."

Step-4. Hit-Enter. It doesn't matter what the file will be named. You can delete this text file once the lockable folder has been made.


Step-5.  Double-click the text file to open it.

Step-6. Paste the below text into the new document: 




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


Step-7. Find where it says "Your-Password-Here" in the document.

Step-8.  Replace "Your-Password-Here" with the password you want to lock the folder with.

Step-9.  Click File.

Step-10  "Select Save As..."

Step-11.  Click on the "Text Documents (*.txt)" menu bar that's next to "Save as type:"

 Step-12.  Select "All Files"

Step-13.   Change the file name to "FolderLocker.bat"

Step-14.   Click "Save."

Step-15.   Double-click FolderLocker.

Step-16.  Fill the Locker folder with the items you want to protect.

Step-17.   Open the FolderLocker file, because it's time to lock that folder up!

Step-18.  Type "Y" into the screen.

Step-19.   Click Enter, and the Folder Locker window will disappear, along with the Locker folder itself! Your secrets are safe!



---------------------------------------------------------------------------------
---------------------------------------------------------------------------------

To unlock the folder, double-click "" to open it. FolderLocker


Enter the password you entered in Step 8, and click Enter. 


The Locker folder is back. You can open it to find your hidden files. Repeat Steps 17, 18 and 19 to lock the folder again.