USB device connected
I would like to know how a java application can be notified when a USB drive has been connected (Windows only, to keep it simple) and assigned a drive letter. How can I do this?
I would like to know how a java application can be notified when a USB drive has been connected (Windows only, to keep it simple) and assigned a drive letter. How can I do this?
> I would like to know how a java application can be
> notified when a USB drive has been connected (Windows
> only, to keep it simple) and assigned a drive letter.
> How can I do this?
Java doesn't have that type of ability to interface with the Operating System. A similar question was asked a few weeks ago as to how a Java application might know whether or not a drive has been connected (without assigning a drive letter) and the answer was something along the lines of:
set up a timer, poll every x milliseconds to see whether a File.exists() <-- where File in this case would refer to the root drive on the attached device.
There is, however, no way for Java to assign a drive letter.
> Google must be broken again!
I don't think that it's worked a single day in the last year and three months...