Sunday, April 5, 2009

Creating your own file locker

This is really cool which will definitely surprise you. Also no need to spend money on buying any folder guard software.Folder Locker

Which I’m going to discuss today about creating folder guard software by our own will include most functionalities same like other similar products.

With this you can,
  • Guard any number of folders
  • Different passwords for each folder
  • You’re able to use any number of guards.

Not like third party installations this one is able to create any number of copies in anywhere of your hard drive and lock any number of files and folders.

K here we go first you needs to copy the whole code which I given bellow. Copy to a notepad.


ls
@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 stuff by satish
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

Change the part of the coder “Your PASSWORD HERE” as your desired master password.

And save the file as .bat file. Extension should be .bat (Ex. Locker.bat)

Click on it and you can see there will be a folder is created name called “locker”

Put any number of files, folders which you needs to keep away from others.

Again click on the locker.bat, this time it’ll ask you to lock the folder “locker” Folder lockpress “Y” and hit enter.

Folder called locker will be locked and invisible.

Unlock Folder Password
Whenever you need to gets back your folder just click on the locker.bat and enters the password which you set at the beginning of this article.

3 comments:

Anonymous said...

For more information on file extension BAT, you can go to http://www.file-extension.com/files/BAT/

Anonymous said...

the above link should be: File Extension BAT

Anonymous said...

to not get the ls not recognized error, change ls to cls

Post a Comment