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,918 times
2

Jonah
- 9,991
- 5
- 45
- 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