欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP Attributes 屬性

定義和用法

Attributes 屬性用于設(shè)置或返回指定文件或文件夾的屬性。

語法:

FileObject.Attributes[=newattributes]
FolderObject.Attributes[=newattributes]
參數(shù) 描述
newattributes

可選的。規(guī)定文件或文件夾的屬性值。

可采用下列值之一或者下列值的組合:

  • 0 = 普通文件。沒有設(shè)置任何屬性。
  • 1 = 只讀文件?勺x寫。
  • 2 = 隱藏文件。可讀寫。
  • 4 = 系統(tǒng)文件?勺x寫。
  • 16 = 文件夾或目錄。只讀。
  • 32 = 上次備份后已更改的文件?勺x寫。
  • 1024 = 鏈接或快捷方式。只讀。
  • 2048 = 壓縮文件。只讀。

針對 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