Rating

  • Currently 0.00/5
  • 1
  • 2
  • 3
  • 4
  • 5

Rating: 0.0 out of 0 votes

Volser

Gets the 4-byte 32-bit binary volume serial number in Windows.

Volser 1.2 Description

Gets the 4-byte 32-bit binary volume serial number in Windows. Gets the 4-byte 32-bit binary volume serial number of a Windows
disk drive assigned when it is formatted to provide and almost unique id.
Don't confuse this with the volser(, the string name,
or the manufacturer's disk serial number assigned to a hard drive at the factory.
Uses JNI and C++ native code.

Consists of java and JNI you include in your own code.

You can test with

C:
CD \com.mindprod.volser
java.exe com.mindprod.volser.Volser

and ensuring nativevolser.dll is on the path, e.g. in the
current directory. YOU MUST MANUALLY EXTRACT
NATIVEVOLSER.DLL and put it on the path. See
path in the Java glossary.

To use getVolser, you need three pieces of code in your
class:
1. an import,
2. a static init to load the JNI library
3. a call to the getVolser native method

i.e.

import com.mindprod.volser.Volser;
...
static
{
// get DLL loaded from somewhere on java.library path.
System.loadLibrary( "nativevolser" );
// if have troubles change this code to use
// System.load( "E:\\com\\mindprod\\volser\\nativevolser.dll" );

/**
* test harness
*
* @param args not used
*/
public static void main( String[] args )
{
// Needs drive letter with colon and trailing backslash
final int volser = Volser.getVolser( "C:\\" );
System.out.println( "4-byte Volume serial number for drive C: is " + Integer.toHexString( volser ) );
}
}

Volser does nothing much by itself, other than a debugging
test harness to demonstrate getVolser method.

Volser 1.2

download software Buy Now download software Download (105K)
  • License: Freeware $0.00

  • OS:Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x

  • Last Updated: 2011-05-28 17:47:11

  • Requirements: Java 1.1+

  • Publisher:Canadian Mind Products

  • Homepage: http://mindprod.com


Volser 1.2 keywords
Other softwares from Canadian Mind Products (108)
  • Converter 5.5

    how to interconvert any of the java primitives. conversion amanuensis..

  • Common11 2.8

    common utility classes that work under java 1.1+.

  • Http 2.9

    http get/post/head/probe/chase java class library for http: or https:.

  • CSV 6.5

    java to read, write, align, sort, reshape, pack... comma, tab-separated files..

  • Confirm 1.3

    ask user to confirm an action in a bat file before continuing..

  • Base64 1.9

    Java classes to encode/decode Base64 and Base64u.

  • Common15 1.7

    common utility classes that work under swing java 1.5+.

  • Batik 2.2

    Java to let you create a custom utility to find and delete all junk files..

  • Password 1.8

    generates random passwords that are hard to guess..

  • Bulk Emailer 1.7

    The bulk emailer program sends the same email to many people..

  • Common13 1.3

    common utility classes that work under Swing Java 1.3+ .

  • BraceBalancer 1.3

    bracebalancer helps find unbalanced {} [] or () in java, css, c, c++ etc source..

  • Restore 6.4

    Restore old MSDOS or PCDOS floppy backups.

  • BackupToZip 1.4

    BackupToZip is a simple backup program that mainatins a compressed mirror..

  • Submitter 16.9

    submitter will submit your pad *.xml program descriptor file to 196 padsites..

  • HtmlMacros 2.3

    a framework for static html macros in java to generate elaborate boilerplate..

  • LEDataStream 1.8

    Little-endian replacements for DataInputStream, DataOutputStream and RandomAcces.

  • ISBN 2.5

    tidies, interconverts and validates isbn-10 and isbn-13 book numbers..

  • CanadianTax 4.2

    calculates canadian sales taxes: gst hst and pst today or in the past..

  • KeyPlayer 1.5

    Java Keystroke and Mouse Event Tutor / Keyboard Diagnostic..