How to hide drives in Windows 7/8/10

If we have private data and someone using our system, then we would like to hide drives so that someone could not get that data. There are lots of ways to hide drives in Windows 7/8/10, but I will show you the better way through command prompt.