Folder Lock Using Notepad

Folder Lock Using Notepad

  • Copy the given code into the notepad.

    • Paste it in the notepad.

      • Save that notepad with name locker.bat

        ( A batch file is created on the location where u have saved locker.bat )

        • Open locker.bat and follow the instructions

          (As default locker has a password shaank)


          cls
          :End
          @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%==shaank 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



          • u can easily change the password in the coding in locker.bat

             

            Enjoy Your privacy and keep reading.

Comments

Popular posts from this blog

How to Upgrade windows 7 to windows 10

Anmol Tukrel: Meet the 10th grader who claims high school project is 47% more accurate than Google

Laptop Distribution Scheme for Upcoming Intermediate Students