My Digital World

Lock and Hide Folders

Posted by: lalitbadoga on: January 1, 2009

Though there are many software’s available to lock your private data like “folder lock”. But if you want to lock your folders without any additional software I have a trick for you.

  1. Open your notepad by typing “notepad” in run window.
  2. then copy the following code in notepad as given below
  3. 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
  4. Then in place type your password here of above code type the password you want to set.
  5. Now open file—-save as
  6. Then select the location you want to create your locker folder
  7. Then type name of file as   “locker.bat”
  8. (note:-you should also use “” while typing name for file)
  9. Now go to location where you saved your locker
  10. Double click on it
  11. Then you will see that a new folder named locker is created.
  12. now move files you want to lock in locker folder
  13. When you want to lock your folder just double click on locker.bat created by notepad
  14. it will ask you to confirm to lock folder
  15. press y and then hit enter
  16. now see the effect

 

When you want to unlock the folder click on locker.bat. It will ask you for password. Type your password and hit enter and see the effect

  • Note: I have not created this tick but I am using it on my computer. So try it and tell me if there will be any problem.


Leave a Reply

Visitor Stats



Visitor Location

free counters

Online



My Readers

Blog Stats

  • 13,231 hits
Page copy protected against web site content infringement by Copyscape