I'm trying to figure out some code/a command that could be used to lock the contents of a flash drive and will disconnect the drive if the password fails. Could this be accomplished by creating a program that would ask for a password and then if the password is wrong it'll 'Safely Remove' the drive, I'm pretty sure I could make code for this, but how could I make it come up as soon as I plug in a flash drive? Thanks