To lock folder
Create a text file on the same path where your folder resides and write (e.g. if u want to lock folder on d:\ then create these files on d:\)
ren lockfolderName lockfolderName.{21EC2020-3AEA-1069-A2DD-08002B30309D}
then save this file with extension ".bat"
To unlock folder
Create a text file on the same path where your folder resides and write
ren lockfolderName.{21EC2020-3AEA-1069-A2DD-08002B30309D} lockfolderName
then save this file with extension ".bat"