Does your computer is used by more than one users? Do you use to store some confidential data on your computer? Do you want to secure this data from other users? If your answer to these question is yes, you can follow simple steps given ahead to lock a folder on your computer without any software. You don’t need to purchase any software.

Related: - How to Take screen shot in Windows 7, Windows XP without any software.

Although there are some trail versions available of folder lock software but these all come with an expiry period. So these can’t be used after some time. But by using the steps  explained here, you will be able to create a folder which can be locked by password. All the data placed in this folder will be password protected. So you can place all data which you want to hide from other users in this folder. This method works 100% on all versions of Microsoft Windows operating system. Just follow the simple steps given below:-

  • Open Notepad on your computer.
  • Paste the following code in Notepad




  • Change the text YOUR PASSWORD HERE  in the above code with password of your choice.
  • Save As the document as XYZ.bat.  Just add .bat after file name like XYZ.bat You can assign any name instead of XYZ as per your choice.


  • Double click on XYZ.bat file saved in above step.
  • This will generate a folder named Locker just besides the XYZ.bat file.


  • Place all the content in this Locker folder which you want to hide from other computer users.
  • After placing all the content which you want to hide, just double click on XYZ.bat file.
  • This will prompt for your permission to lock this folder. If you want to lock that folder, type Y otherwise type N and hit Enter.


  • Locker folder will disappear.
  • Whenever you want to see the content hidden in locker folder, just double click on XYZ.bat file.This will prompt you to enter password assigned in earlier steps.


  • Just put the password and hit Enter.
  • Locker folder will appear again. Open Locker folder to see the content contained in it. You can add more content which you want to hide.
  • Try to keep this XYZ.bat file created above at a place which is not easily accessible to other users. You can place this .bat file in Windows system folders contained in C drive. because most of computer user don’t like to explore C drive as it contains windows system files.
  • Also try to assign a name to .bat file similar to windows system files. so this file will be ignored by a strange user like other windows system files.

So Hide your all valuable data in a password protected folder on your computer without any software on all versions of Windows computers. Don’t forget to share this simple trick with your friends or colleagues.