I can get a list of drives plugged into a computer with File.listRoots(), but I only get the drive letter. How can I get the actual name of the drive (e.x. "Local Disk", "DVD RW Drive", etc.) as it's shown in Windows Explorer?
Asked
Active
Viewed 4,838 times
2
Jonah
- 9,833
- 5
- 44
- 79
-
Sorry folks, duplicate. My bad. – Jonah May 25 '11 at 22:49
-
1if you need extra info you can exec "wmic logicaldisk get" and parse it's output – aav May 25 '11 at 22:56
-
@aav: that's good to know, thanks. – Jonah May 26 '11 at 18:58