Create A Password Protected Folder With Notepad

How To Create A Password Protected Folder Using Notepad:

create password protected folder

Hey guy! Do you have any private files to hide from your brother or sister who using your laptop? If yes, In this tutorial we will show you a cool notepad trick on how to lock folder or create a password protected folder using notepad and CMD. It's very simple and easy to do it, All you need is notepad and a batch file

People using notepad to save their information but many of them don't know there are many things to do with notepad. 

After you learn how to create a password protected folder, You can hide any files what you want in that folder. You can use this trick to lock folder or create a password protected folder by yourself without using any extra software. It can protect your private files from being view and delete by people who using your laptop. So let move into the tutorial.

How To Create A Password Protected Folder Using Notepad

To lock folder or create a password protected folder you will need a Notepad and CMD. So let get start.

Step 1 : Right click on Desktop >>> New >>> Text Document

Step 2 : Copy the code down below and paste to the notepad
title Locker by
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
echo Are you sure to lock this folder?  Type Y for Yes, Type N for No
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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md MyFolder
echo MyFolder created successfully
goto End

Step 3 : Replace with your password

Step 4 : Click on File and then click on Save as

Step 5 : Change Save as type to All Files and save the files as Locker.bat

You have created the locker batch file, After open it and you will see one folder created, Then just put your files you want to lock in that folder then open the Locker.bat again and the files will be invisible.

Note : To unlock the files you have to open Locker.bat again and enter your password.


That's it. It's very simple right? After reading all these steps you will know how to lock folder or create a password protected folder without using any extra software. If the article helpful for you, Please don't forget to share it with your friend and let them know how to do it too. If you have any problem, just leave a comment down below.


Share on Google Plus

About Muhammad Shakir

Hello guys.If you need any help or have any questions in mind then you can comment below.If you want more tricks delivered to you for free then you can join our . You can also join us on and to get our latest posts in your feed.

Support Us by Sharing this article with your friends

    Blogger Comment
    Facebook Comment


Post a Comment