It is very difficult to keep your folder secure when your computer is normally used by all family members. If you want to keep your files secure then you have come to the right place.

Read more: Play the famous Snake game on Google

By this trick, you can set your desired password In your folder. then do not waste time, let’s start.

How To Create Password Protected Folder Using Notepad.

1) First, open notepad.

2) Copy-Paste the code given below to your notepad.

cls
@ECHO OFF
title Amytricks.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Do you want to lock this 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 MyFolder "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 the password to Unlock Your Folder
set/p "pass=>"
if NOT %pass%==Amytricks 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
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

3) Save that notepad file as ” Amytricks.bat ” ( .bat extension is must).

4) Now double-click on ” Amytricks.bat”, Then a new folder will be created with the name of ” My Folder “.

5) copy and paste all your data into this folder (which you want to hide or protect).

6) Now again double click on the ” Amytricks.bat”, Then the command prompt will be displayed.

Now  ” Type Y ” and press enter to lock the folder.

7) Now The Folder will be hidden, to access that hidden Folder just double click on ” OnlineCmag.bat”.

Read more: How to save WhatsApp status without taking screenshot

8) Now you will be asked to enter the password. type default password, the hidden folder will now appear and you can access it.

Note: We have set the default password as ” Amytricks ”. You can change the password by replacing the ” Amytricks ” in above code.