Wednesday, January 26, 2011

Folder Lock Without Any Software

Guys here is a easy way to lock your files by creating your own locker unlike other softwares like FOLDER LOCK etc. which sometimes create a mess this is simple and easy to use!!!
1)Copy the batch code indicated below.
2)Paste it in a NOTEPAD.
3)You just have to change one thing in the line in the code that is in bold letters.Line number 24.You just have to delete the word 'password' from that line and give some other text which you want to be the password of your locker and keep other things intact.
eg."if NOT %pass%== password here goto FAIL". now remove the word "password" and give some other name like-"if NOT %pass%== techhack here goto FAIL". now "techhack" becomes the password of your locker!!
4)Now save the file as "locker.bat".Remember to put the extension to ".bat" else it will not work as its a batch code.
****************BATCH CODE*****************
Quote: cls
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
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.
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End
5)Now after you have completed the above steps and saved the file click on the locker.bat that you created.In this case a folder named "Private" will be created.
6)Copy the files into this folder which you want to lock.
7)Once again click on the file and it will ask you "Are you sure you want to lock the folder(Y/N)" then press y and enter to lock the folder.

8)Againg click on the locker and now it asks you the password to open the folder.Give the same word which you had earlier changed the word "password" with in the code.In our example we had given it to "techhack".
NOTE:The characters of your password will be visible as its in DOS format.

And you can make multiple lockers by keeping the code in .txt format and copy them to different drives and changing the extention to .bat type.
///////Mainly useful in locking the files in USB Drives..till its not formatted.
NOTE:Fine U have made the locker and started using it so what if someone deletes your locker your all r lost.....  well thats not the fact if such thing happens then just create another locker in the same place with the same password as before and you can access the datas u had protected!!!!!
But i cant help if your private folder itself is deleted by someone......its ur foolishness to keep your private folder unlocked!!!

No comments:

Post a Comment