Tuesday 10 February 2015

How to Lock a Folder without any Software

The computer users mostly have confidential data on their PCs. It is very important to hide the confidential data in Windows. Some time the data which is really private need to be secured from the third-party and needs to ensure the complete privacy for it.


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

Learn-How to Lock a Folder Without Using Software

So, here are the steps which you are supposed to follow in order to lock a folder without using any third party software. The steps are quiet simple yet amazing which you are supposed to use. Now, without taking much of your time, I would request you to get towards the below steps:
  • First of all, open Notepad.
  • Now, copy the below code and paste them to Notepad.
cls:End@ECHO OFFtitle Folder Lockerif EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCKif NOT EXIST Locker goto MDLOCKER:CONFIRMecho Are you sure u want to Lock the folder(Y/N)set/p “cho=>”if %cho%==Y goto LOCKif %cho%==y goto LOCKif %cho%==n goto ENDif %cho%==N goto ENDecho Invalid choice.goto CONFIRM:LOCKren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”echo Folder lockedgoto End:UNLOCKecho Enter password to Unlock folderset/p “pass=>”if NOT %pass%==123456789 goto FAILattrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Lockerecho Folder Unlocked successfullygoto End:FAILecho Invalid passwordgoto end:MDLOCKERmd Lockerecho Locker created successfullygoto End:End
  • After you copy the  code above in your notepad, you will find this one in the source code:“%pass%==yourpassword“ (change yourpassword with the password you want.
For example:if NOT %pass%== PvsH goto FAIL

//so your password here becomes PvsH .//

  • After that go to Save as and name this file as locker.bat and then you need to set Save as type to All Files.
  • Now a batch file will appear where you have saved the notepad file. You need to Double Click on that file and then you will see a pop up Window of MS Dos.
  • It will say, Folder created successfully. You will see a folder created where you saved that file.
  • Now, again Open it and then it will ask you to enter the Password which you have set in the source code. Enter that password to proceed.
  • You have followed the steps correctly and the locker is working fine. Now, here comes the hidden part. You will see an ordinary looking folder named Locker and a Batch File which is also named Locker. The folder is working as a Locker and the Batch file is as a key. You need to paste your important documents to the Locker Folder and then Open the Batch File and grant the permission to lock it. Ones the permission is granted then it will hide the Locker folder. To access it again Open the Batch File, enter your Password and access your file.
  • But by using this there is a little risk, one can see the password by right clicking on the bat file and click Edit, it will show you the source code which you have used previously. In order to prevent it we use a software named Bat_To_Exe_Converter.
  • You can download this by clicking here (Click Here)
  • After,downloading it, you should have a zip file. Now extract it you will find this.

  • Now, go into the folder and select the OS i.e either 32-bit or 64-bit. 
  • Now run the application and a screen will pop up.
  • Now choose the .bat path and click on COMPILE.
  • Now you see an .exe application on the desktop.
  • This was it

Conclusion

That’s it, now you can lock any folder using above method. If you find any difficulty or if you want any help just comment below and feel free to ask. If you are successfully done then share your experience by commenting below. Furthermore, if you have found this guide helpful and worth reading then do share it with your other friends and circle too. So, keep sharing and liking our content.

Written by

is one of the Team Member of Programmer vs Hacker. He has written many articles on this website and is a patner of this website.

1 comments:

We’re eager to see your comment. However, Please Keep in mind that comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

© 2015 Programmer vs Hacker. All rights resevered.