Acquiring drive names (as opposed to drive letters) in Java
- by Mattijs
Hi,
On my Windows machine, my main hard drive has the letter C: and the name "Local disk".
To list the drive letters in Java on Windows, the File object has the static listRoots() method. But I can't find a way to acquire the drive names (as opposed to the drive letters) on Windows.
Has anyone tried this before?
Thanks,
Mattijs