Lock Any Folder With Password Without Software

Do you want to protect your folders with passwords ? Want to save your personal data or confidential data in a secured folder so that others cannot access ? Then this article is for you . I will share the technique to protected a folder with a password without using any external softwares. There are many Tools / Softwares available in the internet to do this task , but many of them costs and its not for free.

Lock any folder with password & without any software


This technique is done just by creating a bat file and creating a secured folder . I had given the entire procedure below .

Procedure :

1. Open a Notepad file and copy the below content into it .

title http://tricks-hill.blogspot.com/
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
echo 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.
ren MyFolder “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
echo Enter password to Unlock Your Secure Folder
set/p “pass=>”
if NOT %pass%== Tricks24x7.com 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
echo Invalid password
goto end
md MyFolder
echo MyFolder created successfully
goto End

2. Now change Tricks24x7.com to your desired password and save the file as Password.dat.

3. Now once you double click the Password.bat file , a new folder will be created in which you have to copy all your data which you want to protect . Copy all the content into this folder.

4. Again double clock on Password.bat file and Press Y When cmd prompt appears.


5. Once you had done with it , your folder will get hidden.

6. To open that folder , Double click on the Password.dat file and it will ask for a password to open the folder .


7. Enter your password and access your folder .

This is the best way which i had used to protect the folder without using any kind of external softwares. If you have any doubts , do post in comments section so that i can help you to solve it out .

happy wheels
Rajesh N

About Rajesh N

Rajesh N is a Geeky blogger who is always intrested in writing articles on computer and mobile tricks.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

You May also Like:
How to Download YouTube videos as MP3

Hi all,Today I will show you how to download YouTube videos as MP3 format in high quality. Sometimes you may...