[英]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. 我正在编写一个Java应用程序以获取连接到计算机的所有USB设备的列表,请问有没有人可以帮助我,这可能吗? If there is possibility please help me.
如果有可能,请帮助我。
You could check this question: just get the names of USB devices attached to a system? 您可以检查以下问题: 仅获取连接到系统的USB设备的名称?
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 检查: http : //docs.oracle.com/javase/7/docs/api/java/io/File.html#listRoots%28%29
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.