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
java.exe -jar volser.jar
and ensuring volser.32.dll iand volser.64.dll are on the path, e.g. in the
To use getVolser, you need three pieces of code in your
1. an import,
2. a static init to load the JNI library
3. a call to the getVolser native method
// get DLL loaded from somewhere on java.library path.
System.loadLibrary( "volser.32" );
* 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.
The app is currently available in English and it was last updated on 2012-12-11. The program can be installed on Java, Linux, Mac OS X, Unix, Win2000, Win7 x32, Win7 x64, WinServer, WinVista, WinVista x64, WinXP.
Volser (version 1.3) has a file size of 160.77 KB and is available for download from our website.
Just click the green Download button above to start. Until now the program was downloaded 103 times.
We already checked that the download link to be safe, however for your own protection we recommend that you scan the downloaded software with your antivirus.