Lets say for example we have a folder named test in our desktop, We will convert this folder into Control Panel
First lets create a batch file and put this code(without quotes)
"ren test test.{21EC2020-3AEA-1069-A2DD-08002B30309D} "
.{21EC2020-3AEA-1069-A2DD-08002B30309D} <-- This is The Class ID for Control Panel
and save it as lock.bat or whatever name u want make sure that your batch file and your target folder are in the same directory or folder now double click your lock.bat to convert your target folder into control panel to unlock it you need to create another batch file and put this code(without quotes) "ren test.{21EC2020-3AEA-1069-A2DD-08002B30309D} test" and save it in the same directory or folder
Other Class ID:
Contol Panel
.{21EC2020-3AEA-1069-A2DD-08002B30309D}Recycle Bin
.{645FF040-5081-101B-9F08-00AA002F954E}
My Computer
.{20D04FE0-3AEA-1069-A2D8-08002B30309D}
Internet Explorer
.{871C5380-42A0-1069-A2EA-08002B30309D}