Returns the volume serial number of the specified drive.
Serial := DriveGetSerial(Drive)
Type: String
The drive letter followed by a colon and an optional backslash, or a UNC name such as "\server1\share1"
.
Type: Integer
This function returns the Drive's volume serial number. See Format for how to convert it to hexadecimal.
An exception is thrown on failure.
See example #1 on the Drive Functions page for a demonstration of this function.