How to Lock Folder in Windows

Posted by Bhavesh Joshi On Saturday, April 21, 2012 0 comments
How to Lock Folder in WindowsNow, you can easily lock (secure) a folder without software. It is also best way to secure your data. Thus in order to lock a folder, all you need is to create two batch files. The first batch file will “lock” the folder as actually it will turn the ordinary folder into a link to the Control Panel using an address code and the other one will “unlock” it. So, when someone tries to access that folder then, he/she will be redirect to Control Panel. After these, the next step is to hide that files, especially second one. Let’s start to create-

To make the first batch file for lock folder, grab the following code from here and paste it in notepad file and then, save (Ctrl+S) it named- lock.bat. You can save it by any name (based on you) but, extension should be .bat due to it is batch file. The Following code is- 

ren foldername foldername.{21EC2020-3AEA-1069-A2DD-08002B30309D} 

Note: In the above code, type that folder name which you want to lock. Here in this tutorial, I am locking folder named- “locked”. So the code will- 

ren locked locked.{21EC2020-3AEA-1069-A2DD-08002B30309D} 

How to Lock Folder in Windows

How to Lock Folder in Windows


How to Lock Folder in Windows

Now, it’s time to create second one batch file in order to unlock that folder as grab the unlock code from here and paste it in notepad file and then, save (Ctrl+S) it named- unlock.bat. You can save it by any name (based on you) but, extension should be .bat due to it is batch file. The Following code is-

ren foldername.{21EC2020-3AEA-1069-A2DD-08002B30309D} foldername

NoteIn the above code, type that folder name which you want to unlock. Here in this tutorial, I am unlocking folder named- “locked”. So the code will- 

ren locked.{21EC2020-3AEA-1069-A2DD-08002B30309D} locked 

How to Lock Folder in Windows

How to Lock Folder in Windows

How to Lock Folder in Windows

Finally, all you need is to just lock folder through open of first batch file. If you want to unlock that folder then, you need is to open second batch file. 

How to Lock Folder in Windows

How to Lock Folder in Windows

How to Lock Folder in Windows

How to Lock Folder in Windows

I hope you like this article as please feel free to make comment (feedback)…

0 comments:

Post a Comment