Wednesday, April 2, 2008

Folder lock without software........

--> Open Notepad
--> copy the below code and save with name 'locker.bat'
-->locker.bat
****Please don't forget to change your password in the code****
REPLACE "TYPE UR PASSWORD HERE" AND ENTER WHAT U WANT AS PASSWORD.
Now double click on locker .batFirst time start, it will create folder with Locker automatically for u.After creation of the Locker folder, place the contents u want to lockinside the Locker Folder and run locker.bat again. The Locker folderdisappears from the window. To make the folder available again,double click the locker.bat and enter the password.And you get your folder back!

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 folderset/p "pass=>"
if NOT %pass%== TYPE UR 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 passwordgoto end:MDLOCKERmd Lockerecho Locker created successfully
goto End
:End

No comments: