Lock Folders With Password in Windows 10/8.1 Without Software

Hiding your important files or folders from others is very easy on Windows 10 or Windows 8/7 PC. You can protect all your personal folders with a specific password that too without installing any software. This trick is very helpful for those who are having too much sensitive information in their PC.

In this tutorial, we’ll use batch programming to protect folders with a password. Don’t worry you don’t need to learn its just copy paste the code. Just follow the below instruction to lock your folders with passwords without using any software.

Lock folders with password

1) Open your notepad in your Windows 8.1/8/10 PC.

2) Copy the below code completely in your notepad. Starting from cls to End.

title FastTechBuzz.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
echo ------------------------------------------
echo This Trick is Provided by FastTechBuzz.com
echo -------------------------------------------
echo Are you sure to lock this 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.
ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo ----------------------------------------------
echo Vist FastTechBuzz.com for more tips and tricks
echo ----------------------------------------------
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== fasttechbuzz goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully by fasttechbuzz.com
goto End
echo Invalid password
goto end
md MyFolder
echo MyFolder created successfully
goto End


You Can Watch this tutorial on YouTube: Lock Folders With Password

3) Now save this file as any filename.bat .bat extension is must without that extension this method will not work. You can give whatever filename you wanted.

4) After saving this file open it and a new folder will be created called MyFolder. Now take all your personal folders, documents, pictures, videos whatever you wanted to lock and move them into MyFolder.

5) Again double click on filename.bat >> Then you will see a command prompt like below image. Then press Y to lock your folder.

protect folders with password

6) To unlock the folder again double click on the filename.bat you will be asked to enter your password as shown in
the figure below. The default password will be fast tech buzz.

lock files

How to change default password?

If you want to change your password replace fasttechbuzz with your password which is highlighted with blue color in the above snippet of code.

Watch This Tutorial now.Watch it on Full Screen.


Don’t change any code other than password. To unlock folders which were hidden you should place the filename.bat file in the same location where your files were hidden.

Important Note: This is not the best way to secure your files. This method is just a simple method to hide files from people who don’t know much about computers. You this method at your own risk.

Comments 114 Responses

  1. Shan
    • vishwa
      • Mohammed khazi
      • raja
  2. sai kiran
  3. Bhavesh
  4. karl
  5. Husni
  6. Arnab
  7. Linson
    • Yashwanth
  8. Manu Bajpai
  9. Ye Yint
  10. Sunboy
  11. Peter B
  12. Umair
  13. Miguelon
  14. paul
      • Moses
  15. Moses
  16. mukesh sen
  17. aimal khan
  18. koulini
  19. sasthakumar
      • Guido
  20. Guido
      • Guido
  21. Suresh
  22. Kranthi Kumar S
  23. sona
  24. Sari
  25. Pham Duc
  26. swapnil
  27. bv
  28. Viki
  29. Brett
  30. AlphaMale
  31. Christopher
    • Vishnu
  32. Lj
  33. Kevin88
  34. Ryuzaki
  35. Ankur
  36. Aamir Khan
  37. James
  38. James
  39. Zuhaib Afzal
      • bhaven
        • Srinu Ipathy
    • Nishanth
  40. megha
  41. love
  42. chaila
  43. Ahmer
  44. johny
  45. Arun
  46. Sanlinaung
  47. Ahmad
  48. Hemant Patil
  49. Surajit
  50. maneesh
  51. Idel
  52. Emily
  53. jani
  54. archie
  55. suraj
  56. Jake
  57. annan
  58. Hossein.gh
    • zeeshan
  59. faisal
  60. prasad
  61. Kranthi Kumar S
  62. jo owen
  63. bajinder
  64. Amaanu
  65. Connor Morin
  66. Dr.K.S.Rao
  67. Marie-Franz
  68. Howard
  69. Prashanan
  70. kan
    • Srinu Ipathy
  71. Gautam Gangopadhyay
  72. nadi
  73. magbool
  74. Taj
  75. Shreenag
  76. Rakesh
  77. Jes
  78. Ashi
    • prabhakar
  79. kamal
  80. viji
  81. Vijay
    • Srinu Ipathy
  82. Hritik