Is there a way to retrieve the volume names (drive labels) on a Windows system?
Specifically, I want to discover if a specific USB stick is present by scanning for its name. I already know (through the forum) how to get a list of the drive letters available (C:\, D:\ etc) but I cannot find anything on volume names.
I think that it can be done using this java method ...
... but I don't know how to write a javaObject to execute this.
Specifically, I want to discover if a specific USB stick is present by scanning for its name. I already know (through the forum) how to get a list of the drive letters available (C:\, D:\ etc) but I cannot find anything on volume names.
I think that it can be done using this java method ...
Java:
FileSystemView.getFileSystemView().getSystemDisplayName (f)
Last edited: