DirItem Object
Overview
Member List
Properties
Returns this file's system attributes. Can be a combination of file attribute values defined in the AspUpload type library:
FILE_ATTR_READONLY = &H1
Usage:
FILE_ATTR_HIDDEN = &H2
FILE_ATTR_SYSTEM = &H4
FILE_ATTR_DIRECTORY = &H10
FILE_ATTR_ARCHIVE = &H20
FILE_ATTR_NORMAL = &H80
FILE_ATTR_TEMPORARY = &H100
FILE_ATTR_COMPRESSED = &H800
<!--METADATA TYPE="TypeLib" UUID="{B4E1B2DE-151B-11D2-926A-006008123235}"-->
Response.Write Item.AttributesRelevant Chapters: 9
Returns the file's Creation timestamp.
Usage:Response.Write Item.CreationTimeRelevant Chapters: 9
Returns the name of the file or subdirectory.
Usage:Response.Write Item.FileNameRelevant Chapters: 9
Returns file type according to file extension and registry settings. For subfolders, this value will be set to "File Folder". For files without an extension, this property will be set to "File". For files with extensions that do not have corresponding registry settings (e.g. .xyz) this property will be set to "XYZ File".
Usage:Response.Write Item.FileTypeRelevant Chapters: 9
Returns True is the item represents a subdirectory or False if it represents a file.
Usage:If Item.IsSubdirectory Then ...Relevant Chapters: 9
Returns the file's Last Access timestamp.
Usage:Response.Write Item.LastAccessTimeRelevant Chapters: 9
Returns the file's Last Write timestamp.
Usage:Response.Write File.LastWriteTimeRelevant Chapters: 9
Returns file size in bytes. If the item is a subdirectory the size is 0.
Usage:Response.Write Item.SizeRelevant Chapters: 9
Methods
Check if the specified file attribute is present among this file's attributes. Returns True if Attribute is set, False otherwise. Attribute must be set to one, or a combination of, File Attribute constants defined in the AspUpload type library, such as FILE_ATTR_READONLY.
Usage:
<!--METADATA TYPE="TypeLib" UUID="{B4E1B2DE-151B-11D2-926A-006008123235}"-->
If Item.CheckAttribute(FILE_ATTR_READONLY)Then
Response.Write "R"
End IfRelevant Chapters: 9