Thursday, July 19, 2007

Folder Lock Without any Software

  • Open Notepad and copy the below code and save as locker.bat.
  • At first time start it will create folder with Locker automatically for u. Don’t forget to change your password in the code its shown the place where to type your password.
  • After creation of the Locker folder, place the contents u want to lock inside the Locker Folder and run locker.bat again.it will ask.press Y and enter key ,then Locker folder will be disappeared.
  • Again click locker.bat and give your password, you will get your folder opened.

(NB:The folder Locker will be on the same on path of the batch file(*.bat))
**********************************************************
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End


Give Your Comments buddy....

28 comments:

Unknown said...

thank you for locker code.
Its excellent but what i want to tell you is ,i have to open locker.bat every time. It should ask only one time for lock,unlock and to place content in it .if you need my help or want to share more information then contact me

Unknown said...

rgh

Tarun Sayal said...

hey who so ever has done this
great but there is a disadvantage
the locker .bat file after right clicking over it opens the notepad file and there password can be changed easily. so better to get an idea where the icon can directly referrs the contorl panel and wen it asks it opens the control panel until and unless ging into dos the code for control panell is given

Unknown said...

beautiful man
beautiful

Unknown said...

IT IS NICE.

BUT IT IS NOT SECURE. IF SOME ONE OPEN THE LOCKER.BAT AND GO TO EDIT AND CAN SEE THE PASSWORD, AND CAN OPEN. TO PROTECT IT,, PLEASE DO SOMETHING.

BUT IT IS REALLY A GOOD JOB....,

Unknown said...

80its really great but if any one opens the bat file he can open the folder do some thing to solve this problem but other than that it is excellento

Mohammed Amin said...

This is really great.....

Sunil Gvalani said...

beautiful software

Unknown said...

Really appriciable job.........but as other buddies wrote abt the password seing option, this should be rectified along with there should be an option to need permission before deleting .bat folder

Thanks

Unknown said...

Really appriciable job.........but as other buddies wrote abt the password seing option, this should be rectified along with there should be an option to need permission before deleting .bat folder

Thanks

Unknown said...

Hi it's very nice.... But even ven we typed the password in the command prompt, it is visible. My suggestion is lik when we type the password, if it comes as "**" or no letters are visible when we typed the password like in the UNIX shell, it will be very useful... Hats off to your very good effort...

Unknown said...

its good
but
if any one remove that locker.bat file so what we do?

please reply on my mail
vaibhavshah85@yahoo.com

Unknown said...

its a excellent work. i am not getting it right. a locker folder was created and also it got locked. when i unlock it, it asks for password. but, if i type a wrong password it is still opening. i dont know what is the problem. as many people suggested, password can be found easily by opening te locker.bat file. do something about this and help me in making it work for me.

Unknown said...

this is really great and also appriciable

Unknown said...

i used your command programm folder locker it is fine on stand alone desktop
but it is not working in internal network when going to access the encrypted
folder same.
Also when we go to unlock the folder and type the password the password
charecters are visible to all while type them, This should bt comes like
****** this i think.

Also any one knows this process will can check others passwords by opening
the bat file with notepad.

And what will happened if bat file get deleted?

Ajay said...

Beautiful but not sec ure?
we can edit it

avtarkaint said...

thanks buddy i want this stuff badly

avtarkaint said...

but it is not safe at all from them who have pc knowledge

Unknown said...

Good coding..........

But some points which makes this unprotected are :
1) As all say any one can open the *.bat file & edit the password which means loosing your password with all confidencial files. So Unsafe...........

2) Whenever u type your password it is clearly shown on the screen. Passward shoul be in "*********" coding so that the owner of folder, open the folder without displaying the password on screen. Unsafe...

3) Anyone can easily remove the Locker.bat file. I think it must ask to enter the passward before deleting.

If any one get the solution on these 3 points please reply at alps_sonsoha@indiatimes.com

Unknown said...

IT IS A GOOD WAY TO PROTECT FOLDERS. I DID THE SAME AND AFTER 2 DAYS, FOUND THAT ALL THE FILES ACCOUNTING TO 2 GB WERE MISSING FROM THE LOCKER FOLDER.

WHAT IS THE SOLUTION TO RETRIEVE THE FILES BACK ?

REGARDS,

RAVI

Unknown said...

IT IS A GOOD WAY TO PROTECT FOLDERS. I DID THE SAME AND AFTER 2 DAYS, FOUND THAT ALL THE FILES ACCOUNTING TO 2 GB WERE MISSING FROM THE LOCKER FOLDER.

WHAT IS THE SOLUTION TO RETRIEVE THE FILES BACK ?


rrd080598@gmail.com

REGARDS,

RAVI

Unknown said...

ON this batch file all wrong password are accepted.

Unknown said...
This comment has been removed by the author.
Unknown said...

lol this code is awsome.

all i needed to do is edit it and put in into exe file so my family wouldnt beable to check wat i do

Rakib khan said...

This is excellent.but not secure.Everyone can see the password by useing his brain. I know that how to
hack this locker.I also love it.

Rakib khan said...

I am sure its very good. I want give thanks , who create it.
I am a student of dinajpur polytechnic Institute ,Bangladesh.
I am a student of computer technology on 6th semester.
I want this , on Linux os based.
My Email ID:
lemon.readme@gmail.com
lemon.readme@yahoo.com
Cell Numder:01712560329

Anonymous said...

hey i have a problem! i used this and after a while it erased my protected files!! do you know how can i recover them or where are they hidden?

Unknown said...

very nice trick..
how can i rename "Locker" folder name.
lock folder