Getting The Hard Drive Serial Number

Click to select the code.  Use Control-C to copy it to your clipboard. Help


Every hard drive has a distinctive Volume Serial Number, with the chances of any two drives you encounter having the same serial number astronomically high.  For this reason, the Volume Serial Number is often used as part of copy protection schemes.  One caution is that operating system re-installations and upgrades may change a Volume Serial Number, and formatting certainly will.

In this example, the serial number for drive C: is returned in the string variable TheSerial Number, converted to hexidecimal format as the integer format is rather unwieldy.  TheSerialNumber will contain an empty string if the drive is unavailable.

FLASH! BANG! The action just never ends. You want your site to look great? You want it to stand out from the crowd? You want it to be free of smelly foot odor? Then you MUST MUST MUST have... Go here: FlashBanger's!


Copyright 2001 - 2012 by and OECCorp.
The 2012 Evolution™ is an OEC InterNET Group site.SupportNotices