Currently, all of our information is digital – from photos to our banking information and everything in between. Among these files, we all have sensitive information that, if seen by others, can cause irreparable harm. Windows 10 doesn’t make it easy to password protect a folder, but we can tell you here how to protect your most sensitive information.
1. Open the folder you want to password protect.
2. Right-click inside the folder to open the context menu.
3. Select New from the context menu.
4. Click Text Document from the context menu that pops up.
5. Rename the new text document to “Locked Folder” and press Enter.
6. Open the “LockedFolder” text document.
7. Copy the highlighted code below.
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%==INPUT 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
8. Paste the code into the “Locked Folder” text document.
9. In the “Locked Folder” text document find the phrase “INPUT YOUR PASSWORD HERE”.
10. Replace “INPUT YOUR PASSWORD HERE” with a password of your choice. Do not use spaces in your password.
11. Click File in the text document header menu.
12 . Select “Save As” from the drop down menu.
13. Change the file name “LockedFolder” to “LockedFolder.bat”.
14. In the “Save as type” dropdown select “All files”.
15.Click Save.
16. Double-click “LockedFolder.bat”; Windows batch file.
17. You will now see a new folder named “Locker”. Select, drag and drop the files you want to lock in the Locker folder.
18. Right click on the Windows batch file named “LockedFolder”.
19. Select “Open” from the context menu.
20. Enter “Y” in the pop-up CMD window, and then press Enter on your keyboard. Your locked folder and its contents are now hidden.
21. To unlock and make the folder visible again, double-click on the Windows command file “Locked Folder”.
22. Enter the password you created earlier and press Enter on your keyboard when asked to unlock the folder.
Repeat these steps again to hide and password protect a folder:
24. Double-click the batch file “LockedFolder.bat” Windows.
25. Type “Y” in the CMD popup and then press Enter on your keyboard.