简体   繁体   中英

List of attached USB devices using Java

I am writing a Java application to get the list of all USB devices attached to the computer, can any one help me please is this possible. If there is possibility please help me.

You could check this question: just get the names of USB devices attached to a system?

You could always check all the file roots using:

File[] roots = File.listRoots();

Check: http://docs.oracle.com/javase/7/docs/api/java/io/File.html#listRoots%28%29

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM