How To Lock/Password Protect a Folder in pc or Laptop

We all have our secret little worlds in which we don’t want others to intrude. Especially when it comes to computers and smartphones, we want to have some privacy. Luckily, there are all sorts of tools and features which let you protect your data and information from others. Windows 10 full release is just days away. Once you install it, you will need to ask about how to lock folder in Windows 10 to save data. The good news is that Microsoft has provided an easy, native feature using which you can password protect a folder in Windows 10 to protect data inside it. You would not need any third party app to do the job for you. Here’s how to password protect and lock a folder in Windows 10.

Folder Locker

Lock Folder in Windows 10

Open the folder which you want to lock. This folder could have files, subfolders, videos, presentations, or any sorts of data you want to protect.
Right click inside the folder and select “New” to open the sub-list. Click on “Text Document” to make a new text document.

lock folder windows 10 1

Open the text document and paste the below-mentioned text as it is.

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

After pasting the text, search the document where it’s written “Your-Password-Here”. Replace “Your-Password-Here” with the password you want to put on this folder to lock. Just backspace the phrase Your-Password-Here and type your new password.

lock folder windows 10 4
Now click on the File menu right away without making any other changes in the file and click on “Save As’.
lock folder windows 10 5

Remember to choose “All Files” from the “Save as Type” drop down menu while saving the file.

lock folder windows 10 6
You must also give “FolderLocker.bat” name to the file. (Quotes not included).
After saving the file, click on this file (FolderLocker file).
You will see that a new folder with name “Locker” is created. This is the folder on which the lock has been applied. You can move all the items you want to protect in this folder. This folder will be password protected, the password being the one you set in the file.
Open the FolderLocker file again.
You will be asked whether you want to lock the folder. Type Y and press enter.
lock folder windows 10 19
The folder in which you put your private contents will be vanished! No one will be able to see it unless you unlock it.
lock folder windows 10 20
In order to unlock a locked folder, open the Open the FolderLocker file again, and type the password of the folder.

How May I Help You?

Got anything else to Protect a Folder in your pc or Laptop?  If you're still having problems to Protect a Folder in your pc or Laptop.  Let me know. Comment below by typing your board name, roll number and start a discussion! 
I will be happy to assist you.


About Web Expert BD