ASP Attributes Property
❮ ဖိုင် Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
သတ်မှတ်ထားသော ဖိုင် သို့မဟုတ် ဖိုဒါတစ်ခု၏ ရည်ညွှန်းချက် သို့မဟုတ် ရည်ညွှန်းချက်များကို သတ်မှတ်ရန် သို့မဟုတ် ပြန်ပေးရန်အတွက် Attributes ပိုင်ဆိုင်မှုကို အသုံးပြုသည်။
အထားအသို
FileObject.Attributes[=newattributes]
FolderObject.Attributes[=newattributes]
Parameter | Description |
---|---|
newattributes | Optional. Specifies the attribute value for the
file or folder. Can take any of the following values or a combination of the following values: 0 = Normal file |
File object အတွက် ဥပမာ
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test.txt")
Response.Write("The attributes of the file are: ")
Response.Write(f.Attributes)
set f=nothing
set fs=nothing
%>
Output:
The attributes of the file are: 32
Folder object အတွက် ဥပမာ
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
Response.Write("The attributes of the folder are: ")
Response.Write(fo.Attributes)
set fo=nothing
set fs=nothing
%>
Output:
The attributes of the folder are: 16
❮ ဖိုင် Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။