Many times you face this situation; you want to hide some personal data from the other person using your computer. However most of the person uses any software for that which can be troublesome sometime. So here is the trick to lock any folder in windows without any software.

Suppose you want to lock the folder “hitman” in C: drive.

The path for the folder is C:\games\hitman.

Go to C:\games the create a text file and type command
ren hitman hitman.{21EC2020-3AEA-1069-A2DD-08002B30309D}
Now save this text file as hide.bat

Create another text file and type in it
ren hitman.{21EC2020-3AEA-1069-A2DD-08002B30309D} hitman
Now save this text file as show.bat

Now you can see 2 batch files “hide” and “show”.

Press “hide” and the folder hitman will change to control panel and you cannot view its contents. Press “show” and you will get back your original folder.
You can move this folder to anywhere on your drives. But make sure you click on “hide” or “show” file when it is placed in C:\games; else it wont work. Always remember the folder is to be locked and “show” and “hide” files should be in same folder at the time of using them, after use you can move it.