in reply to Getting Hardware Keys from Windows
For me, this returnsuse Win32API::File qw (:Func ); my ( $sRootPath, $osVolName, $lVolName, $ouSerialNum, $ouMaxNameLen, $ +ouFsFlags, $osFsType, $lFsType ); $sRootPath = "C:/"; GetVolumeInformation( $sRootPath, $osVolName, $lVolName, $ouSerialNum, + $ouMaxNameLen, $ouFsFlags, $osFsType, $lFsType ); #---- print "\nRoot:\t$sRootPath\n"; print "VolName:\t$osVolName\n"; print "SerialNumber:\t$ouSerialNum\n"; printf "Hex SerialNumber:\t%x\n", $ouSerialNum;
the stardard 'vol c:' (which you could backtick) returnsRoot: C:/ VolName: mecano SerialNumber: 2226596281 Hex SerialNumber: 84b729b9
-jim Update: forgot the 'use' line in the code snippet>vol c: Volume in drive C is mecano Volume Serial Number is 84B7-29B9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting Hardware Keys from Windows
by Anonymous Monk on Oct 27, 2004 at 18:33 UTC | |
by jimbojones (Friar) on Oct 27, 2004 at 22:49 UTC | |
by jimbojones (Friar) on Oct 28, 2004 at 13:46 UTC |