How to Create a Password Protected Folder without any Software

 

There are a lot of software that you can use to create a password protected folder. But you don’t want to use some third party software. Don’t worry I’ll tell you a very simple method. Using this simple method you can hide your folders quickly with batch script.

 

Create Your Password Protected Folder

 

Step 1: Open the notepad ,and paste the following code:

cls
@ECHO OFF
title Folder Private
if EXIST “HTG Locker” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
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.
goto CONFIRM
:LOCK
ren Private “HTG Locker”
attrib +h +s “HTG Locker”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%== TYPE YOUR PASSWORD goto FAIL
attrib -h -s “HTG Locker”
ren “HTG Locker” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

How to Create a Password Protected Folder without any Software

 

Step 2: Change the TYPE YOUR PASSWORD text to the password you want to set. Now go ahead and save the file as hackingeveryday.bat.

How to Create a Password Protected Folder without any Software

How to Create a Password Protected Folder without any Software





Step 3: Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. This is where you can store all your secret things. When you have finished adding all your stuff to the Private folder, run hackingeveryday.bat again.

How to Create a Password Protected Folder without any Software

Step 4: Now double click bat fine, this time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.

How to Create a Password Protected Folder without any Software

You will see that your Private folder quickly disappears.


Step 5: If you click again the bat file, you will prompted for a password. If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.

How to Create a Password Protected Folder without any Software


 

Author: Dipanshu

Dipanshu is a Computer Science Engineer student, Blogger and Technology Enthusiast. He is the Founder of Hacking Everyday. He writes about tech, food, health and everyday hacks.

Share This Post On

9 Comments

  1. Hi, i believe that i noticed you visited my weblog so i came to return the
    choose?.I am attempting to find issues to enhance my web site!I assume its good enough
    to use some of your concepts!!

    Post a Reply
    • we don’t think we have visited your website.Comment us your website, we’ll be happy to visit.

      Post a Reply
  2. Thanks for your marvelous posting! I actually enjoyed reading it, you happen to be a great author.I will be sure to bookmark your blog and will come back in the future. I want to encourage you continue your great posts, have a nice day!
    keganmn

    Post a Reply
    • Thank you for visiting our blog and we’re really happy that you liked our post.And my team will try our best to keep you update and entertain in near future.
      Plz do visit again and share it to your group for extending our viewers and appreciation like you did, So that we can improve ourselves.
      Thanks

      Post a Reply
  3. Hello everyone, it’s my first go to see at this web site, and
    piece of writing is truly fruitful for me, keep up posting such articles.

    Post a Reply
    • Thank you for appreciating our blog we’re really happy that you liked our post.Plz do visit again and share our website to your group for extending our viewers and appreciation .

      Post a Reply
  4. When I originally commented I appear to have clicked on the
    -Notify me when new comments are added- checkbox and now each time a comment is added I
    receive four emails with the exact same comment. Is there an easy
    method you can remove me from that service? Many thanks!

    Post a Reply
  5. Thanks for helping out, wonderful info .

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This

Share this post with your family and friends!