Returns Serial Number of a drive.
DriveGetSerial ( "path" )
Parameters
| path | Path of drive to receive information from. |
Return Value
| Success: | Returns the Serial Number of the drive as a string. |
| Failure: | Sets @error 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
$var = DriveGetSerial( "c:\" )
MsgBox(4096, "Serial Number: ", $var)