Link:http://output.to/sideway/default.asp?qno=180600001 Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element Property FileSystemObject Folder
VBScript Properties of FSO Folder ObjectSome typical predefined Elements are.
Attributes Propertylast updated 12/16/2017is to set, if optional newattributes is given and attribute is a read/write attribute, or to return the attributes of a folder or file of associated Folder or File Object. Syntaxfsofolderobjvar.Attributes [= newattributes] fsofileobjvar.Attributes [= newattributes] Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.AttributesRequired Keyword. to specify the Property of associated Object.newattributesOptional. If provided, newattributes is the new value for the attributes of the specified object.Settingsnewattributes argument: ConstantValueDescriptionNormal0Normal file. No attributes are set.ReadOnly1Read-only file. Attribute is read/write.Hidden2Hidden file. Attribute is read/write.System4System file. Attribute is read/write.Volume8Disk drive volume label. Attribute is read-only.Directory16Folder or directory. Attribute is read-only.Archive32File has changed since last backup. Attribute is read/write.Alias1024Link or shortcut. Attribute is read-only.Compressed2048Compressed file. Attribute is read-only. Remarks
Applied toFolder Object, File ObjectDateCreated Propertylast updated 12/16/2017is to return the date and time that the folder or file of associated Folder or File Object was created. Syntaxfsofolderobjvar.DateCreated fsofileobjvar.DateCreated Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.DateCreatedRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectDateLastAccessed Propertylast updated 12/16/2017is to return the date and time that the folder or file of associated Folder or File Object was last accessed. Syntaxfsofolderobjvar.DateLastAccessed fsofileobjvar.DateLastAccessed Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.DateLastAccessedRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectDateLastModified Propertylast updated 12/16/2017is to return the date and time that the folder or file of associated Folder or File Object was last modified. Syntaxfsofolderobjvar.DateLastModified fsofileobjvar.DateLastModified Argumentfsofolderobjva | fsofileobjvarrRequired. to specify the associated Object instance reference.DateLastModifiedRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectDrive Propertylast updated 12/16/2017is to return the drive letter of a drive on which the folder or file of associated Folder or File Object resides. Syntaxfsofolderobjvar.Drive fsofileobjvar.Drive Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.DriveRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectFiles Propertylast updated 12/16/2017is to return a Files Collection consisting of all File objects including those with hidden and system file attributes in a folder of associated Folder Object, Syntaxfsofolderobjvar.Files ArgumentfsofolderobjvarRequired. to specify the associated Object instance reference.FilesRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder ObjectIsRootFolder Propertylast updated 12/16/2017is to return a Boolean value indicating the folder of associated Folder Object is a root folder with True or is not with False. Syntaxfsofolderobjvar.IsRootFolder ArgumentfsofolderobjvarRequired. to specify the associated Object instance reference.IsRootFolderRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder ObjectName Propertylast updated 12/16/2017is to set, if optional newname is given, or to return the name of a folder or file of associated Folder or File Object. Syntaxfsofolderobjvar.Name [= newname] fsofileobjvar.Name [= newname] Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.NameRequired Keyword. to specify the Property of associated Object.newnameOptional. If provided, newname is the new name of the specified object.Remarks
Applied toFolder Object, File ObjectParentFolder Propertylast updated 12/16/2017is to return the parent folder of a folder of file of the associated Folder or File Object. Syntaxfsofolderobjvar.ParentFolder fsofileobjvar.ParentFolder Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.ParentFolderRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectPath Propertylast updated 12/15/2017is to return the path of a drive, folder, or file of associated Drive, Folder, or File Object. Syntaxfsodriveobjvar.Path fsofolderobjvar.Path fsofileobjvar.Path Argumentfsodriveobjvar | fsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.PathRequired Keyword. to specify the Property of associated Object.Remarks
Applied toDrive Object, Folder Object, File ObjectShortName Propertylast updated 12/16/2017is to return the short name of the associated Folder or File Object for programs require the earlier 8.3 naming convention. Syntaxfsofolderobjvar.ShortName fsofileobjvar.ShortName Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.ShortNameRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectShortPath Propertylast updated 12/16/2017is to return the short path of the associated Folder or File Object for programs require the earlier 8.3 naming convention. Syntaxfsofolderobjvar.ShortPath fsofileobjvar.ShortPath Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.ShortPathRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectSize Propertylast updated 12/16/2017is to return the size in btyes of a folder including all files and subfolders, or a file of corresponding associated Folder or File Object. Syntaxfsofolderobjvar.Size fsofileobjvar.Size Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.SizeRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File ObjectSubFolders Propertylast updated 12/16/2017is to retrun a Folders collection of all folders including those with hidden and system file attributes set inside a folder of associated Folder Objecter. Syntaxfsofolderobjvar.SubFolders ArgumentfsofolderobjvarRequired. to specify the associated Object instance reference.SubFoldersRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder ObjectType Propertylast updated 12/16/2017is to return the type of a folder or file of associated Folder or File Object.. Syntaxfsofolderobjvar.Type fsofileobjvar.Type Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.TypeRequired Keyword. to specify the Property of associated Object.Remarks
Applied toFolder Object, File Object |
Sideway BICK Blog 01/06 |