ASP Attributes Property
Definition and Usage
The Attributes property can be used to set or return the attributes of a specified file or folder.
Syntax:
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
Parameter | Description |
---|---|
newattributes |
Optional. Specifies the attribute value of the file or folder. Only one of the following values or a combination of the following values should be used:
|
Instance
<% 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) f=nothing ayarla fs=nothing ayarla %>
Çıktı:
Dosyanın özellikleri: 32