Thomas Edison

"Do you realize if it weren't for Edison we'd be watching TV by candlelight"

Sunday, 1 July 2012

How to lock any folder

Let see how to lock any folder without any software



Before we proceed i want to tell you that Computer Password is essential for this practical. 

  • Open Notepad file.
  • And copy all content listed below in Black Font

    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

     

  • After copying this matter in the text file save as locker.bat
  • Double click on this .bat file ,a locker named folder automatic formed.
  • Copy all the matter in this folder ,which you want to lock.
  • After this again double click on locker.bat file. It will ask ! ..Are you want to sure to lock this folder(Y/N).
 
  • Press Y and then press Enter.Your folder ave been locked.
  • And when you want to recover this folder double click on locker.bat file it will ask for password..Give you computer password it will appear on your screen

Thankyou..   :-)

No comments:

Post a Comment