
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}
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
Note: In 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
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.
I hope you like this article as please feel free to make comment (feedback)…
0 comments:
Post a Comment