www.icetips.com  Icetips Utilities Documentation 11/14/2010    

File Class: GetDriveSerialNumber

Previous  Top  Next  


Prototype: (String pDrive),String

 

pDriveDrive letter to get the drive type string for.  Normally passed as C:\ or \\servername\share\

 

ReturnsReturns 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:

GetVolumeInfo

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getdriveserialnumber_fileclass.htm