No, it does 't exactly what I mean.
If you open your explorer in Windows you can see the drive letter and the drive name of the partition. I search a function which will deliver the drivename of the partition, not the letter.
Somebody had post me a solution in the Javaforum of Sun.
For everyone who is interested in this problem:
There is an abstract class in javax.swing.filechooser.FileSystemView.
Ths class has a method which is called: getSystemDisplayName(File f)
With this method you get the Drivename.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.