DriveGetSerial

Returns the volume serial number of the specified drive.

Serial := DriveGetSerial(Drive)

Parameters

Drive

Type: String

The drive letter followed by a colon and an optional backslash, or a UNC name such as "\server1\share1".

Return Value

Type: Integer

This function returns the Drive's volume serial number. See Format for how to convert it to hexadecimal.

Error Handling

An exception is thrown on failure.

Drive functions

Examples

See example #1 on the Drive Functions page for a demonstration of this function.