Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Volume Serial Number On Partitions  RSS feed

 
cameron weirs
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
is it possible to get the volume serial numbers on the various partitions through java.
exactly i m looking for a parallel method to getVolumeInformation(partitionlabel) which is in VB5.0 and 6.0
thanks in advance.
regards..
cameron
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "volume serial number" is a DOS conceit. Since Java is designed for "write-once, run-anywhere", it couldn't be part of the core package - systems like the Macintosh, Unix, IBM mainframes, etc. either don't have volume serials, or interprets the term differently - for example, on an IBM mainframe, the VOLSER is a 6-character EBCDIC field. You need JNI to call out of the common-code world and into native OS code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!