list external drives

Posted by Asaf David on Stack Overflow See other posts from Stack Overflow or by Asaf David
Published on 2010-06-05T13:25:57Z Indexed on 2010/06/05 13:32 UTC
Read the original article Hit count: 151

Filed under:
|
|
|

in java, you can use File.listRoots() to get all drives in the system. I'm looking to get only the external drives, i.e. USB drives, external hard disks, optical drives, floppy etc'.
is there any way to do it in java? if not, native c++ code would be good as well. in that case, i need both windows and linux code

thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about c++