How to Create a Password Protected Folder Using Notepad Without Any Application How-Tos

You might have many folder’s in your PC which you need to protect by Password and I’m going to show you how you can create a Password Protected Folder using Notepad and that to without need of any third party application. My trick also do not require any kind of applications or software needs to be installed. This will help you to protect your private stuff from unauthorized access. Just follow this simple steps to protect your Folder:

Steps to create a Password Protected Folder using Notepad

1. Goto the Folder you wish to protect by Password
2. Create a Notepad file in this folder
3. Copy and Paste below Code in the file:

title Folder Private
if EXIST “HTG Locker” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
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 Private “HTG Locker”
attrib +h +s “HTG Locker”
echo Folder locked
goto End
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%== mypassword goto FAIL
attrib -h -s “HTG Locker”
ren “HTG Locker” Private
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End


Password Protected Folder

4. Here the default password is mypassword
5. To set your own password, go to line which states: “if NOT %pass%== mypassword goto FAIL”
6. Replace your password with word ‘mypassword’ in this code and Save the file
7. Rename the notepad file to “locker.bat” Please note that you also need to change the extention from .txt to .bat and it is done by rename.
8. Click on the file locker.bat, this will create a new folder named “Private”
9. Now move all your private stuff in this Folder ‘Private’
10. After adding all the private stuff, again run locker.bat file.
11. It will asked “Are you sure that you want to lock the folder?” Press ‘Y’ and than press Enter
12. You will see that the private folder has been hidden
13. Now to access the folder again, run the locker.bat file enter your password and access your files.

Isn’t this amazing. With this simple steps, you can  make your private stuff hidden from everybody else. You can prevent all unauthorized access to this folder and that to without need to install any software or application. Only one problem with this trick is that anybody who knows how to play with system files can crack this folder. Anyhow, this is not that much easy to figure out if you are not too techiiiii. So not to worry about that and enjoy the trick.

How to Create a Password Protected Folder Using Notepad Without Any Application
1 vote, 5.00 avg. rating (96% score)

Recent Comments

  1. cosmetic surgeries

    Hello there, You’ve performed a great job. I will certainly digg it and personally recommend to my friends. I’m sure they’ll be benefited from this web site.

  2. cellulite treatment

    I like the helpful info you provide in your articles. I will bookmark your blog and check again here frequently. I’m quite sure I will learn lots of new stuff right here! Best of luck for the next!

  3. faizan

    bt if any one right click on that locker.bat and clicks on edit he can see the password is their any other source 2 hide or make it pass protected to locker.bat file

    1. admin Post author

      Faizan, there is no way to make the locker.bat file password protected. Better idea is to hide it.

  4. adi

    if i right click the locker.bat file and select edit option from the dropdown menu,it opens the file in i can view what password the user has set and change the password according to my convinience.kindly check it out as this method has a major flaw.

Leave a Reply