Function Reference

DriveGetSerial

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

None.

 

Related

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

 

Example


$var = DriveGetSerial( "c:\" )
MsgBox(4096, "Serial Number: ", $var)