Hi! All, can anyone tell me how to get a Volume Serial number On the Drives in a Java Application, actually i m Looking for a parallel method to getVolumeInformation(driveLabel) which is in VB . Thanks in advance. --Cameron
Joined: Apr 03, 2001
Since java has to be platform independent you might have to go a JNI route.
Joined: Sep 29, 2000
Yeah but VB only runs on Microsoft operating systems, so it is easy to know how the volumes are cataloged. Writing such a method that would work on MS and on Linux and on a Mac, etc. would be quite amazing. I would guess you would need to write or find some custom code.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: May 29, 2001
thanx aleksey presently i m managing in the issue uing JNI only . So i was trying to figure out if some direct support is there .
cindy , ur argumemnt is making a sense ok Vb is for microsoft platforms but we know that all platforms have their versions of JVM which are tailored to work on and in turn interact with that os. so i was thinking ...that way .. thanx and regards .. --cameron
Joined: Dec 30, 2000
I am curious what kind of application you are developing that requires knowledge of the volume serial number. I think of Java as working at such a high level of abstraction that it would never care about volume serial numbers. It almost sounds like you are writing a utility that is by it's nature operating system specific and not a good candidate for a Java project.