# Function Reference

# DriveGetSerial

Returns Serial Number of a drive.

DriveGetSerial ( "path" )

## Parameters

path | Path of drive to receive information from.

## Return Value

Success: | the Serial Number of the drive as a string.
Failure: | sets the @error flag to 1.

## Remarks

The value returned is not the hardware serial number as found on the label of the drive, it is the Windows Volume ID for the drive.

## Related

DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus

## Example

    #include <MsgBoxConstants.au3>

    Local $sSerial = DriveGetSerial(@HomeDrive & "\") ; Find the serial number of the home drive, generally this is the C:\ drive.
    MsgBox($MB_SYSTEMMODAL, "", "Serial Number: " & $sSerial)