|
Previous Top Next |
Prototype: | (String pDrive),String |
pDrive | Drive letter to get the drive type string for. Normally passed as C:\ or \\servername\share\ |
Returns | Returns drive serial number formatted as xxxx-xxxx. |
This method calls the GetVolumeInfo method to extract the volume serial number from a drive. Note that this is NOT hardware serial number, just the volume serial number that is created when the partition is formatted.
Example:
ITF ITFileClass
Code
ITF.ODS('Serial number = ' & ITF.GetDriveSerialNumber('c:\'))
This will return the serial number for the C: drive.
See also: