You may also rename folder from command line or using a batch .bat file. Suppose you want to lock the folder ProtectedFolder on drive C: (C:\ProtectedFolder).
On the same drive create a text file and copy-paste the following into it:
Code:
ren ProtectedFolder ProtectedFolder.{21EC2020-3AEA-1069-A2DD-08002B30309D}
Then save this text file as lock.bat .
Create another text file and copy-paste the following into it:
Code:
ren ProtectedFolder.{21EC2020-3AEA-1069-A2DD-08002B30309D} ProtectedFolder
Then save this text file as unlock.bat .
Now you can lock ProtectedFolder by running lock.bat and unlock it by running unlock.bat. The only problem is that anybody can use these files.