ASP အရွယ်အစား ပိုင်ဆိုင်မှု
❮ ဖိုင် Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
အရွယ်အစား ပိုင်ဆိုင်မှုကို သတ်မှတ်ထားသော ဖိုင် သို့မဟုတ် ဖိုင်တွဲ၏ အရွယ်အစား၊ ဘိုက်များ ပြန်ပေးရန်အတွက် အသုံးပြုသည်။
အထားအသို
FileObject.Size
FolderObject.Size
File object အတွက် ဥပမာ
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test.asp")
Response.Write("The size of test.asp is: ")
Response.Write(f.Size & " bytes.")
set f=nothing
set fs=nothing
%>
Output:
The size of test.asp is: 10556 bytes.
Folder object အတွက် ဥပမာ
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
Response.Write("The size of the folder test is: ")
Response.Write(fo.Size & " bytes.")
set fo=nothing
set fs=nothing
%>
Output:
The size of the folder test is: 123456 bytes.
❮ ဖိုင် Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။