Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Volume Serial number

 
cameron weirs
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since java has to be platform independent you might have to go a JNI route.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
cameron weirs
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Arthur Lyman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic