Friday, 14 September 2012

New way to Lock a Folder


Hi folks...
Today i have something interesting code for you. We always want to hide some personal files from others and have to use a third party software for that but what if you create your own locker and kepp your files away from others. Today in this post I will tell you how to create a simple folder locker which would hide the folder you want to lock. No software required, its just very simple to create it.
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
echo Enter password to lock folder or for cancel press N
echo (Provided by:
set/p "cho=>"
if %cho%==priest goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
echo (Provided by:
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
echo (Provided by:
goto End
echo Enter password to Unlock folder
echo (Provided by:
set/p "pass=>"
if NOT %pass%==priest 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
echo (Provided by:
goto End
echo Invalid password.
goto end
md Locker
echo Locker created successfully
echo (Provided by:
goto End

  1. Copy this Code into notepad and replace the priest with your password.
  2. Save it with .bat extension(for eg: locker.bat).
  3. Copy the Batch file to the place where you want to create your locker folder.
  4. Now double click the Batch file.
  5. Now you can see the Lock folder is created.
  6. Place your files into lock folder which you want to protect.
  7. Again double click the Batch file, it will ask you to enter the password to lock the folder. Enter the password.
  8. Now the folder will be Locked and will become invisible.
  9. To unlock again double click the Batch file, enter the password.
  10. You can see the Lock folder.
  11. Password is case sensitive.
  12. Done.

If you have Any Queries Ask me in form Of Comments 
And don't forget to share and join this blog and like us on Facebook......

1 comment:

  1. Hi, Neat post. There is an issue together with your site in internet explorer, would test this?
    IE still is the marketplace leader and a big component of folks will
    pass over your fantastic writing due to this problem.
    Feel free to surf my website ; gmail password hack software free download


Write your openion about my blog spot..To get automatic facebook updates like my Page ..It takes only 1 min to write the comment and to like the page.. Thanks.