Sunday, November 8, 2009

FOLDER LOCK

Hello friends...Hope you guys are enjoying my posts on Windows XP tricks...Today I will show you how to lock your folder, i.e to make your folder password-protected without any kind of software...It is possible by using some registry tricks...This trick will be very useful for those who need privacy in a multi-user system...So enjoy...

1. First copy the following code paste into a 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 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 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


2. Now you can see "type your password here" in the 23rd line of the code...Delete that and type your own password there...

3. Save this file with any name and the file extension should be ".bat"...

4. Now double click the batch file...It will create a folder named "Locker"...Put the files in that folder which you want to lock...

5. Now double click on the batch file to lock the folder...Dos prompt will appear, asking "Are you sure you want to lock the folder"...



6. Press "Y" followed by "Enter"...The folder is locked now...

7. Now if you want to unlock the folder double click that batch file again...The dos prompt will appear, asking for the password...Put the correct password followed by Enter...Your "Locker" is now opened to you...



You are done...Your privacy is now in your hand...Have fun :-)

Note:
1. Don't delete the batch file.
2. Don't rename the folder "Locker".

Happy Hacking...Enjoy...

For educational purpose only...Do not misuse it...