📜  ASP TotalSize 属性

📅  最后修改于: 2022-05-13 01:56:26.671000             🧑  作者: Mango

ASP TotalSize 属性

ASP TotalSize 属性用于返回系统上指定驱动器的总大小。它以字节为单位返回值。

句法:

DriveObject.TotalSize

示例:下面的代码演示了 ASP Drive.TotalSize 属性。

ASP
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
  
'Getting the drive
set d=fs.GetDrive("d:")
  
'Getting the total size of the drive
Response.Write("Total size of drive: " & d.TotalSize & " bytes")
  
set d=nothing
set fs=nothing
%>


输出:

Total size of drive: 499368587264 bytes