I'm trying to get the permanent available drives on a pc. Its easy enough to get all the drives available but is there a way to only get the drive that are consistent? For example i want it to ignore all network, cd/dvd and floppy drives.
Without using JNI there is one class I know that may help you out: FileSystemView.
Unfortunately, except for floppy drives these "is" methods do not return anything useful; on my system, they all return the same values. The type may be of use but I doubt that it is a portable solution - on a different system the labels may be different, or the method may even return null.