Protect file or folder using password

In this tutorial i will teach you how to protect your folder with password but without using any software in windows operating system. This is amazing trick that will help you to protect your folder with password and also hide your folder automatically that no one can see.

  1. First press ctrl + r .
  2. Then one dialog box appears . Type notepad & press enter.
  3. Now copy these codes that given below and paste on your notepad.
    1. cls
    2. @ECHO OFF
    3. title
    4. if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    5. goto UNLOCK
    6. if NOT EXIST MyFolder goto MDMyFolder
    7. :CONFIRM
    8. echo Are you sure to lock this folder? (Y/N)
    9. set/p “cho=>”
    10. if %cho%==Y goto LOCK
    11. if %cho%==y goto LOCK
    12. if %cho%==n goto END
    13. if %cho%==N goto END
    14. echo Invalid choice.
    15. goto CONFIRM
    16. :LOCK
    17. ren MyFolder “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    18. attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    19. echo Folder locked
    20. goto End
    21. :UNLOCK
    22. echo Enter password to Unlock Your Secure Folder
    23. set/p “pass=>”
    24. if NOT %pass%== techknowledge goto FAIL
    25. attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    26. ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    27. MyFolder
    28. echo Folder Unlocked successfully
    29. goto End
    30. :FAIL
    31. echo Invalid password
    32. goto end
    33. :MDMyFolder
    34. md MyFolder
    35. echo MyFolder created successfully
    36. goto End
    37. :End

  4. Then go to file and click to save as and type name lock.bat
  5. After that double click on lock.bat folder .
  6. Now one new folder is created with name MyFolder copy your important data in this folder and close the folder.
  7. Then again double click on lock.bat folder one dialog box appear press y and press enter.
  8. It's done. Now your folder is hide and secure whenever you need your data double click on lock.bat and enter password(Default your password is techknowledge) your folder is again visible.

Tip : Copy and past the lock.bat file in safe place and hide it.

Please follow and like us:

One thought on “Protect Folder with password without any software.”

Leave a Reply

Your email address will not be published. Required fields are marked *