Create Password Protected Folder (Folder-Lock)


Advertisements

There are always some things which we don’t want others to see in our Computer, Example: private photos, porn films, secret documents etc. So we need to hide them. Just attributing the Folder which includes these Files as HIDDEN does not serve this purpose because these days every person knows to view Hidden files. So why not Password protect this Folder? We do get Folder Lock softwares for Download on Internet but they offer only trial versions for free. So, Today I will give a tutorial on Creating a Password Protected folder in Windows.

Just open Notepad and copy the following code given in Green colour in it.

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}”
attrib +h +s “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==YOUR PASSWORD HERE goto FAIL
attrib -h -s “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}”
ren “Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Do not forget to change the “YOUR PASSWORD HERE” text by a strong and secure password which you want to set for your Locker.
Now save this file WHERE YOU WANT THE PASSWORD PROTECTED FOLDER as “locker.bat”. A folder named Locker will appear in the same directory. (Refresh if it does not appear)

Click on the locker.bat file and it will ask you for the password for your Locker (Not for the first time, Second time onwards) You need to give the same password which you gave while writing the BAT file in Notepad (Remember password is case sensitive) Now you can save any data in this Locker folder. After saving the data again click on the locker.bat file. It will ask you weather you want to lock this folder. Type y if you want to lock it or n if you don’t want to lock it.

You can use the locker.bat file to unlock this folder as explained above. Have fun locking your documents in your password protected folder. Ask your queries in Comments and Don’t forget to tell weather you liked this trick or no.

(Note: BAT files can be edited in Notepad (Different Notepad tricks) so any Computer savvy person might get to know your password through the locker.bat file. So it is advised that you HIDE the locker.bat file. You don’t need to hide the Locker folder because it is Hidden by Default)

Related posts:

Comments are Do Follow! Just follow 2 Simple Rules

Comments (18)

Danin

September 24th, 2008 at 2:42 am    


NIce site dude

Keep Developing your site

Search some Free Web Hosting sites for my sake………

who am i

November 5th, 2008 at 11:54 am    


awesome site dude…thanks a ton

lou

November 15th, 2008 at 4:20 am    


Great Job! Thanks for your share

Anonymous

January 5th, 2009 at 10:30 am    


do not work with vista

Rohit Sane - Tech freak

January 5th, 2009 at 1:41 pm    


Hey Anonymous,
I am using windows Vista Home Premium and this trick is working properly….Just check weather there is some error from your side..take care…Try again

Surya

April 2nd, 2010 at 5:48 am    


This code can simply break with the REN command.

This script is doing nothing more than changing the folder into the “control panel” using the registry.

One need to rename the folder name using REN.

Simha

August 6th, 2010 at 1:24 am    


It is not working for windows 7.
Any suggestions ???

Kyle

December 1st, 2010 at 8:35 pm    


does it work for Vista Starter?

Rohit Sane

December 6th, 2010 at 1:07 am    


@kyle: it does work!

vijayan

December 16th, 2010 at 10:46 am    


pls some one ,any body decrypt this
46b94f557956dfeeaa1a7089e5ad32fb

rdharma

February 1st, 2011 at 8:21 am    


nice post , now I can create password protectd folder without using any lock application.

K Gaurav Thantry

March 17th, 2011 at 2:45 am    


hey i’m using windows xp dark edition and its not working for me.
Its not asking d password. when i click the locker.dat folder its just showing- “are you sure you want to lock this folder(Y/N)” and if i type Y, the window is just closing. and the locker folder is opening without any question for password.
reply me as soon as possible.

Rohit Sane

March 17th, 2011 at 3:38 am    


@Gaurav: Please check if you have done all the steps properly.. Coz It is working with all Windows XP versions..

Kenric

May 25th, 2011 at 8:09 am    


Can someone decrypt this for me md5 hash 3144d89f633a5a584ceb33a1736ce048 Thanks, very important. Password can be sent to pjmarlon10@hotmail.com

nicholas

May 28th, 2011 at 9:27 am    


6660d98451db91f96a6911bf3102eb79 kan somone decrypt this for me, its a very important password! and i cant do it, send it to nicholas97@live.no, thx alot

anna

June 2nd, 2011 at 4:21 pm    


e99db499f56627867455e090f29be307 THX THX THX THX THX THX annapuci1989@tiscali.it

Channing

June 17th, 2011 at 9:38 am    


Hello im so srry to bother you but could u help me decrypt this code its soo very important i cant really do anything without it c17ca919931405eecf1051abba27ce4b id absolutly love u if you could, plss and tyvm.

sahiti

September 23rd, 2011 at 11:53 pm    


sir plz can u plz decrypt me dis ……i will be very helpful
d522980ac094f9f514ac6249f1d48eb6
n my email id is sahiti.korangi@gmail.com….plz sir

Leave a reply

Name *

Mail *

Website