ລະບຽບ TotalSize 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: 9693563395