ASP Attributes Property Last Updated : 24 Mar, 2021 Comments Improve Suggest changes Like Article Like Report The ASP Attributes Property is used for returning or setting the attributes of the specified file or folder. The attributes are defined with the following numerical values: 0: Normal file1: Read-only file2: Hidden file4: System file6: Folder or directory32: The file has changed since the last backup1024: Link or shortcut2048: Compressed file Syntax: For a File Object: FileObject.Attributes[=newattributes] For a Folder Object: FolderObject.Attributes[=newattributes] Parameters: This property has a single parameter as mentioned above and described below: newattributes: It specifies the attributes that have to be set for the given file or folder. It is an optional attribute. The below examples demonstrate the ASP Attributes Property. Example 1: The below code returns the attributes of the file. ASP <% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the file set f=fs.GetFile("d:\GFG.txt") Response.Write("The attributes of the file are: ") 'Getting the attributes of the file Response.Write(f.Attributes) set f=nothing set fs=nothing %> Output: The attributes of the file are: 1024 Example 2: The below code returns the attributes of the folder. ASP <% dim fs,folder set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the folder set folder=fs.GetFolder("d:\geeks") Response.Write("The attributes of the folder are: ") 'Getting the attributes of the folder Response.Write(folder.Attributes) set folder=nothing set fs=nothing %> Output: The attributes of the folder are: 18 Comment More infoAdvertise with us Next Article Custom Attributes in C# M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Properties ASP-Basics Similar Reads ASP Item Property The ASP Item Property is used to return or set the value of an item in the Dictionary Object. Syntax: DictionaryObject.Item(key)[=newitem] Parameter Values: key: It specifies the key that is associated with an item. It is a required attribute.newitem: It specifies the new item that has to be set for 1 min read Custom Attributes in C# Attributes are metadata extensions that give additional information to the compiler about the elements in the program code at runtime. Attributes are used to impose conditions or to increase the efficiency of a piece of code. There are built-in attributes present in C# but programmers may create the 6 min read Attributes in C# Attributes are used in C# to convey declarative information or metadata about various code elements such as methods, assemblies, properties, types, etc. Attributes are added to the code by using a declarative tag that is placed using square brackets ([ ]) on top of the required code element. There a 4 min read Java Program to Implement Attribute API Valid attribute names are case-insensitive, and they are restricted to the ASCII characters in the set of [0-9,a-z, A-Z_-], and cannot be exceeded over 70 characters in length. The attribute's value can contain any characters and will be encoded in UTF-8 when written to the output stream in any prog 6 min read Understanding Data Attribute Types | Qualitative and Quantitative When we talk about data mining , we usually discuss knowledge discovery from data. To learn about the data, it is necessary to discuss data objects, data attributes, and types of data attributes. Mining data includes knowing about data, finding relations between data. And for this, we need to discus 6 min read HTML Attributes Complete Reference HTML attributes are special words placed inside the opening tag of an HTML element to define its characteristics. Each attribute has two parts:Attribute nameAttribute value (separated by an equal sign = and enclosed in double quotes " ").Syntax:<tag_name attribute_name="value"> Contents... 8 min read Like