Open In App

ASP SerialNumber Property

Improve
Improve
Like Article
Like
Save
Share
Report

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,dr
set fs=Server.CreateObject("Scripting.FileSystemObject")
  
'Getting the required drive
set dr=fs.GetDrive("d:")
  
'Getting the serial number of the drive
Response.Write("Serial No. of the drive is " & dr.SerialNumber)
  
set dr=nothing
set fs=nothing
%>


Output:

Serial No. of the drive is 1108724040

Last Updated : 19 Mar, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads