Google handles thousands and thousands search queries about folder locking softwares. There are many good free and paid such soft-wares and they are easy to use as well, but why not try something new here where you can lock any folder without using a software. Just follow the simple steps in this post and secure your files without any software.


How to Lock a Folder Without using any software:

  • Open Notepad
  • Copy the below code in your Notepad:

cls @ECHO OFF title if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK if NOT EXIST MyFolder goto MDMyFolder :CONFIRM 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. goto CONFIRM :LOCK ren MyFolder “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 Your Secure Folder set/p “pass=>” if NOT %pass%== Techjeep 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 goto End :FAIL echo Invalid password goto end :MDMyFolder md MyFolder echo MyFolder created successfully goto End :End

  • if NOT %pass%== Techjeep goto FAIL line in above code should be changed accordingly, change Techjeep to whatever you like as your password.
  • Save the file as password.bat
  • Double Click the file “password.bat“, this action will create a New Folder
  • Copy all your important data into that newly created folder
  • Than again double click the file password.bat
  • It will open CMD
  • Type Y and press enter
  • Your folder shall disappear, in which you copied your important data.
  • Whenever you want to retrieve the data in future, just open password.bat file
  • You will be prompted to put the password, just type your password and press enter
  • Your hidden folder will be displayed again


This tricks works on Windows 8, Windows 7, Windows XP and Windows Vista.



Please enter your comment!
Please enter your name here