ASP Attributes Property
Definition and Usage
The Attributes property can be used to set or return the specified file or folder attributes.
Syntax:
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
Parameter | Description |
---|---|
newattributes |
Optional. Specifies the attribute value of the file or folder. Use one of the following values or a combination of the following values:
|
实例
<% 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 %>
Tulostus:
Tiedoston ominaisuudet: 32