ASP SerialNumber Property
The ASP SerialNumber Property is used to return the serial number of a particular drive.
Syntax:
DriveObject.SerialNumber
Example: The below code demonstrates the ASP Drive.SerialNumber Property.
ASP
<%dim fs,drset fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the required driveset dr=fs.GetDrive("d:") 'Getting the serial number of the driveResponse.Write("Serial No. of the drive is " & dr.SerialNumber) set dr=nothingset fs=nothing%> |
Output:
Serial No. of the drive is 1108724040


