USB Passcode

I was wondering how to make a program that when I plug in my USB drive the console then spits out a specific passcode that is set in the USB itself. But not before it has been plugged in(maybe prompt the user to put it in), and when the USB is disconnected then have the passcode disappear after 5 seconds(or just kill the program).
Last edited on
Which OS/Compiler are you using for this?
I am using windows 10, with visual studio 2017 community.
Topic archived. No new replies allowed.