|
|
|
Getting The Hard Drive Serial Number Comments 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. . |