This trick has only been tested in Windows XP.

Suppose you want to lock the folder virus in D: which has the path D:\virus

In the same drive create a text file and type:

“ren virus virus.{21EC2020-3AEA-1069-A2DD-08002B30309D}” (Without the quotes)

Now save the text file as lock.bat 

Create another text file and type in it:

 ”ren virus.{21EC2020-3AEA-1069-A2DD-08002B30309D} virus” (Without the quotes)

 Now save the text file as key.bat

Now you can see 2 .bat files. Lock.bat and key.bat Press lock and the folder “virus” will change to control panel and you won’t be able to view its contents. Press key and you will get back your original folder.

Enjoy… Thank You.