ASP 序列号属性
ASP SerialNumber 属性用于返回特定驱动器的序列号。
句法:
DriveObject.SerialNumber
示例:下面的代码演示了 ASP Drive.SerialNumber 属性。
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
%>
输出:
Serial No. of the drive is 1108724040