How To Password Protect Any Folder Easily With Notepad?
Wassup guys? I'm back again with a new windows tutorial. You can rather call it a windows trick. This tutorial is mainly dedicated to all the boys and naughty girls (we all boys are naughty) who want to hide their ultra-personal stuffs in password protected folders. As you can guess from the title of this post, you don't need to install any additional software. So let's get the party
.
Needed Ingredients:
Notepad or any other text editor.
A keyboard and a mouse.
Copy-pasting ability.
I've got all, except the last one, now what?
Okay now open notepad or any text editor you have. You can find notepad by going Start > All Programs > Accessories > Notepad.Opened? Now copy the following code and directly paste it in the notepad! And if you're suffering from the 'extramatoiuskeyboardious' disease, then you may type it.
cls
@ECHO OFF
title Tech-a-Brel.Blogspot.Com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Buddy are you sure 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 Secured Folder
set/p "pass=>"
if NOT %pass%== techspot goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Yay! Folder Unlocked successfully
goto End
:FAIL
echo Sorry Bro Invalid password!
goto end
:MDMyFolder
md MyFolder
echo MyFolder Created Successfully!
goto End
:End
Pasted? Now time to change the password. I've used techspot. Replace it with anything you like. Then save that file with a .bat extension (e.g. lock.bat). Remember, you must assign the file with .bat in order to make this trick work.
After that double click on the file lock.bat. You'll see that a new folder is created instantly. Then copy all your'ultra-personal' stuffs to that folder.
Now come back to the previous folder and double click the file again. Command prompt will be opened with a question for you, (exactly like Sir Amitabhji): Buddy are you sure to lock this folder? Confirm it by pressing Y key in your keyboard. Immediately, the MyFolder file will be hidden along with your stuffs.
To get access to your files, double click the lock.bat file once again. You will be prompted to enter the password. In this example I've used the password — "techspot". Submit this one or the password you replaced it with while editing the file in notepad. Then hit the enter button. Wallah! Your folder is unlocked.
You can try more experiments on it. But at first keep a backup of your important files somewhere. This trick can be easily broken only by editing the .bat file. So don't use it in case of serious security issues. I recommend you to protect your folder securely using WinRar.