ASP Attributes ÊôÐÔ
¶¨ÒåºÍÓ÷¨
Attributes ÊôÐÔÓÃÓÚÉèÖûò·µ»ØÖ¸¶¨Îļþ»òÎļþ¼ÐµÄÊôÐÔ¡£
Óï·¨£º
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
| ²ÎÊý | ÃèÊö |
|---|---|
| newattributes |
¿ÉÑ¡µÄ¡£¹æ¶¨Îļþ»òÎļþ¼ÐµÄÊôÐÔÖµ¡£ ¿É²ÉÓÃÏÂÁÐÖµÖ®Ò»»òÕßÏÂÁÐÖµµÄ×éºÏ£º
|
Õë¶Ô File ¶ÔÏóµÄÀý×Ó
<%
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
Õë¶Ô Folder ¶ÔÏóµÄÀý×Ó
<%
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
%>
Êä³ö£º
The attributes of the folder are: 16