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?

[184 byte] By [stoid2004-sun@yahoo.coma] at [2007-11-27 10:52:38]
# 1

> 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.

Navy_Codera at 2007-7-29 11:39:03 > top of Java-index,Java Essentials,Java Programming...
# 2

Google must be broken again!

floundera at 2007-7-29 11:39:03 > top of Java-index,Java Essentials,Java Programming...
# 3

> Google must be broken again!

I don't think that it's worked a single day in the last year and three months...

Navy_Codera at 2007-7-29 11:39:03 > top of Java-index,Java Essentials,Java Programming...