Sunday, March 30, 2008

Best Folder lock...



This post is about how to lock the folder with maximum security.Once you lock your folder,you can't find it anywhere in your system until you unlock it.

First paste the following code in your notepad

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

save this as a batch file .
ie., filename.bat

Click the batch file and run it.
A new folder called locker will be created.

Keep the files that you want to be locked inside the locker folder and again open that batch file. It will ask whether to lock yes or no.You press Y .

The locker folder will become hidden. So you have locked the folder!!!

Now to open it right click the batch file and select the Edit option and see for these wordings

"if NOT %pass%==type your password here goto FAIL"

alter this as
" if NOT %pass%==((your password)) goto FAIL"

Then you can again get the folder visible!!!

3 comments:

suren said...

gud one dude.. but dont u think batch files are bit outdated ??

Deepak said...

no one would suspect you using them now na....

winner said...

I agree with you about these. Well someday Ill create a blog to compete you! lolz.