The end goal is to create a program that runs when my hard drive is plugged into a computer. This program will attempt to verify that the user is me through username and password. Upon correct input, the program will allow access to the files on the hard drive. Incorrect input will 'safely eject' the hard drive so it cannot be accessed until it is plugged in again (obviously that would mean it runs the program again).
I already have a program folder with two programs I've written in it:
1) A program that asks for username and password (which are preset within it). This program allows three attempts at both username and password. On a third strike of either variable, the program displays "Unauthorized Access Prohibited!", imports my contact information from the second program, and then emails me that my hard drive has been accessed.
2) A program that displays my contact information. This program is imported into the other when a third strike happens.
Does anyone know how I could meet my end goal?
Thanks ahead of time.