Lock any Folder using Notepad

It is very easy to Lock any folder without use of any software. To lock any folder just follow following Steps as written in this post

  • Copy the Following Code to Notepad

    title Folder Locker
    if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
    if NOT EXIST Locker goto MDLOCKER
    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
    ren Locker "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%==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
    echo Invalid password
    goto end
    md Locker
    echo Locker created successfully
    goto End
  • Now, save the above file in Note Pad as "Locker.bat" in your computer
  • Now, whenever you will run this it will create a Folder named Locker in which you can store desired files in it and then by again running Locker.bat, you'll be able to Lock the contents.
  • To unlock open Locker.bat again and it will be done!
  • Enjoy!!
Do you have questions, comments, or suggestions? Feel free to post a comment!


Post a Comment