√ How to Lock a Folder with a Password Without an Application + Image

We all have secret files that we don’t want anyone to know about, but not everyone knows how to lock these folders with a password on a Windows laptop, whether version 7, 8, or 10.

Do you feel that hiding files using the conventional method, namely with the Hidden button, is still not safe? Fortunately, the Windows operating system has provided a feature so that you can input multiple files into a secret folder that is protected with a password and you can do this without using any additional software or applications.

After you create a new folder on a Windows laptop, here is how to lock the folder with a password without additional applications:


I have received various messages either via gmail or facebook page regarding various problems experienced by people while practicing this tutorial. So, I decided to update the tutorial and do some internal testing repeatedly. This is done so that this tutorial can actually run on all Windows operating systems. And now I can confirm that this tutorial can work well if you follow the process carefully.

If you are still in doubt, you can first try this tutorial by using a trial file which will not harm you, this is all in case this method does not work for you.

Then also make sure you keep some notes somewhere that save the password or password that you use to lock your folder. If you forget your password, your files will be lost, therefore it is very important to backup your password in case you forget it in the future.

Suggestions for readers:

Don’t use the password with space, it can create problems with batch files. If you lose access to a folder that you locked, you can use a third-party application to access the files you hidden by re-saving.

Also read

Here’s how to lock a folder on a Windows laptop with a password, so you can fill it with files you want to keep secret. To make it easier for readers, this article is divided into 3 steps, namely how to lock a folder, how to open a folder that has been locked and how to lock the folder again.

So don’t be surprised if this article feels longer, because it was deliberately made more complete so that readers don’t have to look for other tutorials.

How to Lock a Folder with a Password on All Windows

1. Please open the folder you want to hide. Then go ahead right click in any place.

2. Select New from the contextual menu. Then click on Text Documents.

3. Please name the file whatever you want. After that, double click on the file to open it.

4. Copy the password code below and paste it into the file you just created:



title Folder Locker

if EXIST “Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK



echo Are you sure you 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


5. Look for the sentence “Your-Password-Here” inside the code you just copied. Then replace the sentence with the password you want to create, make sure that you remember the password.

6. After changing the password, you can save the file by clicking “Files” then select “Save As

7. Click on the menu bar “Save as type” which previously had the Text Document (*.txt) format becomes All Files

8. Then change the name of the password file to “FolderLocker.bat” and make sure that the name is not wrong.

9. After that, please click “Save

10. Once saved, please double click on the file called FolderLocker and the system will create a new folder called locker automatically. Fill the Locker folder with the files you want to protect.

11. After filling it with various files that you want to keep secret, you must lock this folder again so that it cannot be accessed by other people. Double click on the FolderLocker file and a new window will appear similar to CMD. Please type “Y” then press enter then the Locker folder will disappear and your secrets are safe!

That’s the tutorial on how to lock a folder with a password without additional applications. Hopefully this tutorial, which is accompanied by images, can be easily understood and is useful for readers.






Leave a Reply

Your email address will not be published. Required fields are marked *