Read a CD/diskette/HD LABEL...

A

Andreas G.

Hello,

does anybody knows how a CD label can be read in Java code (also diskette /
HD partition labels)?

Thanks in advance.

Regards,
Andreas G.
 
K

K.Koper

Hi,

some crude (very) code to display the label of the C drive on a windows
machine

Code:
FileSystemView view = FileSystemView.getFileSystemView();

File f = new File("c:\\");

System.out.println(view.getSystemDisplayName(f));

hope this helped :)

Klaas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top