Pages

Thursday, July 7, 2011

Lock your Folder without using any Software


Here is a simple trick to Lock your Folder withour using any external software
First of all Open Notepad and copy the below code on it.
Replace the text TYPE YOUR PASSWORD HERE to the password text you want to set.
Now save it as locker.bat

First time when u click on it, it will automatically create folder "Locker" for you.
Now to lock this "Locker" folder:
Click on locker.bat and it will ask whether to lock the folder or not, press y and hot enter.
Your "Locker" folder will be disappeared.

To open your "Locker" Folder :
Click on locker.bat enter your password and hit enter, your "Locker" folder will now be visible.

Here is the piece of code that you need to paste in your notepad:



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 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 password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Enjoy :-)

Try ti comment so we can serve you better.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.