ASP Attributes ÊôÐÔ
¶¨ÒåºÍÓ÷¨
Attributes ÊôÐÔ¿ÉÓÃÀ´ÉèÖûò·µ»ØÖ¸¶¨µÄÎļþ»òÎļþ¼ÐµÄÊôÐÔ¡£
Óï·¨£º
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
²ÎÊý | ÃèÊö |
---|---|
newattributes |
¿ÉÑ¡µÄ¡£¹æ¶¨Îļþ»òÎļþ¼ÐµÄÊôÐÔÖµ¡£ ²Å²ÉÓÃÏÂÁеÄÖµÖ®Ò»»òÏÂÁÐÖµµÄ×éºÏ£º
|
ʵÀý
<%
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