I have been having a problem identifying a flash drive in my code.
Luckily my code can be run from the flash drive. So is there a way in C (or C++) to tell what drive letter (or drive name) a program is running on?
Reason I need to know is when I plug the USB drive in, it is running a program that copies files from the computer to the USB drive itself.