I'm trying to hide the data on my USB drive. I've come up with the idea to hide everything in a second partition, which Windows would not recognize. Then, in the first partition, there would be a batch file that, with the right password, would set the USB drive as a local drive and make the hidden partition visible. I can't, however, come up with a way to set the drive as a local drive using a batch file. Is there a way to do so?
If this method wouldn't work, even if there's a way to set the drive as local drive, then is there another way to lock an USB drive in such a way that it can't be read, written or formatted without admin rights?