当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP TotalSize 属性
The TotalSize property returns the total size, in bytes, of a specified drive or network share.
ASP TotalSize属性的作用是返回指定驱动器或者网络共享文件夹的总节数。
| DriveObject.TotalSize |
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The total size in bytes is: " & d.TotalSize)
set d=nothing
set fs=nothing
%> Output: The total size in bytes is: 4293563392 |
评论 (0) All