ASP Attributes 屬性
定義和用法
Attributes 屬性可用來設置或返回指定的文件或文件夾的屬性。
語法:
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
參數(shù) | 描述 |
---|---|
newattributes |
可選的。規(guī)定文件或文件夾的屬性值。 才采用下列的值之一或下列值的組合:
|
實例
<%
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
%>
輸出:
The attributes of the file are: 32