Monday, June 1, 2009

How to Create folder lock without any software

Copy the following code to a notepad file


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


1.Now type your desired password in the place provided in the code. 2.Save the file as Locker.bat
3. click the locker.bat file after saving
4.It will create a folder named "Locker" now put the files which you want keep locked into the "Locker" folder.
5.Now click the Locker.bat it will ask you to confirm folder lock.
6.Press Y and the locker folder will disappear.
7.If you want to get back the folder click the Locker.bat file again and enter the password.
8.Now the Locker folder with all your files will appear.

No comments:

Post a Comment