Skip to main content

How to Password Protect Any Folder Easily With Notepad?

password protect folder using 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 started!


Needed Ingredients:
  • Notepad or any other text editor.
  • A keyboard and a mouse.
  • Copy-pasting ability.
  • A goat (optional). 
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%== techabrel 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 techabrel. 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 — "techabrel". 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.

It was an easy stuff, you know, so I didn't add any screenshots. If you have any troubles doing the same, just ask me in the comments or in any of the social networking sites — Google+, Facebook, Twitter, Pinterest. Thanks for tolerating me. Keep respecting goats. #Peace.

Photo: Dev.Arka

Comments

  1. Santanu Mukherjee12/18/2013

    Really helpful article buddy, thanks a lot!

    ReplyDelete
  2. Welcome bro. Keep reading ;)

    ReplyDelete
  3. Sudip Dhibar12/24/2013

    really good one!

    ReplyDelete
  4. Ranjan2/17/2014

    seriously awesome!!

    ReplyDelete
  5. how can i delete the bat file when it is secured?

    ReplyDelete
  6. jianke4/25/2014

    Amazing Post.... Really working..... 100% working for free creat floder protector ! i apreciate you...

    ReplyDelete
  7. doesn't work on my pc thought.. I can still access the folder.... even with a wrong password.. using windows 7 professional

    ReplyDelete
  8. Choirul Hanna Mustofa1/04/2015

    Really nice..
    I like the goats :D

    ReplyDelete
  9. Your question's not pretty clear. You can simply press delete key to delete the bat file.

    ReplyDelete
  10. so everybody is using it goood

    ReplyDelete
  11. Melissa5/25/2015

    Can this work for macs?

    ReplyDelete
  12. Suraj Kolla6/05/2015

    Sir.. I am stuck, I did everything as yoou said... and I locked some stuff. But Unfortunately, I deleted that file from my computer. How can I backup those files?

    ReplyDelete
  13. You can use any file recovery software like Recuva to get back those deleted files.

    ReplyDelete
  14. Saroj Shrestha6/09/2015

    After protection, when we select a bat file and changed view to preview pane, it gives detail on sidebar. How to fix it?

    ReplyDelete
  15. The Loner 4 Ever7/18/2015

    THIS IS SO GOOOOOOOOD
    it even hides the folder this is AWESOME

    ReplyDelete
  16. The Loner 4 Ever7/18/2015

    it dont delete them it makes the folder invisable run the file again adn type in the password it will come back ;)

    ReplyDelete

Post a Comment

Popular posts from this blog

How to hide any folder or files in android without any third party app?

Credit: Racchio H owdy! Finally the exams are over, and thanks to our holy goat it wasn't too bad you know! So I decided to stop wasting time with those shits and do my job, i.e. blogging. Today I'm gonna discuss the easiest way to hide folders or files in android. You may need to hide folders because of your nasty cousin or because of ultra-personal stuffs (you know what I mean). And the best part about the process is that you don't need any third party app. Sounds interesting, no? So alright let the mission begin. Cool Article: 5 Damn Awesome Android Launchers you can't Miss! Stuffs You're Gonna Need: A working android device. A File Manager (default). Few fingers to work with. A Goat (optional). F irst of all switch on your phone and unlock it (just kidding). N ow open your file manager. For this tutorial, I'm using the default file manager of my Galaxy Y (don't laugh, old is gold). N ext go to your file manager settings and loo

Powered by Blogger Attribution — How to Remove it From Your Blog?

Is that 3 word clutter making your blood boil? Then why u no remove it?  Last week I wrote a tutorial on removing the navigation bar in blogger blogs, which too, is nothing but a mess to your blog. In this post I'm gonna help you removing the 'Powered by Blogger' attribution from the footer section of your blog. In default templates and some of the custom templates, the attribution stay locked at a fixed position which is really infuriating. You can't move it, you can't delete and you go mad about that crap. Chillax, cool up your brain, and read this post. It's all up here. Now there a question comes that — Is it legal to remove the attribution from a blog? Because, it's kind of right of Blogger to place that stuff. Isn't it? Here's a way to deal with it. If you're using a custom template, then there must be a space in the footer to display the template maker's credits, right? In that space, beside the credits, you can place a link

Post Blank Status or Comment on Facebook!

H ello again everyone! Well, I'm writing a little bit much facebook tricks these days, though I wonder why.  However let's cut that off and begin. The crap that I'm gonna dictate to you today is a facebook trick to post blank status or comments (not bad, eh!). Updating a blank status may sometimes help you to get more likes than a normal boring quotation. Here we go. Cool Stuff: Trick to Post Animations on Facebook Easily! Updating Blank Status: T o update a blank status, Log In to Your Account. In the Status Update box type (hey don't be lazy, type it!) — @[0:0: ] and then post it. You copy-pasted it, huh? I knew you're gonna do it. :-\ However, you're done. The much likes you get, the much friends you recommend our site, okay? After you are done it should look like, Posting Blank Comments: P osting a blank comment is pretty much the same as creating a blank file or folder in windows. If you missed that article, catch it no