Link:http://output.to/sideway/default.asp?qno=130500003 Size / Drive / IsRootFolder / Name / Path, Folder Object, ASP Server Component, Built-in Function Folder ObjectOne key function of FileSystemObject Component is the manipulation of folders of the file system. FolderObject.Size PropertyFolderObject.Size property is a property to to get the total size, in bytes, for all files and subfolders contained in the specified folder object instance. Syntax:FolderObjectName.Size Or in VBScript. Imply foldersize =FolderObjectName.Size Or in JScript. Imply foldersize =FolderObjectName.Size Parameters:foldersize The parameter "foldersize" is the name assigned to the value returned by the size property referred to the specified Folder object. FolderObjectName The parameter "FolderObjectName" is used to specify the name of the instance of the Folder Object related to. Returns:Value The return value of the size property is a value in bytes, for all files and subfolders contained in the specified folder object instance. Remarks:FolderObjectName refers to a Folder Object. And File object is another possible alternate object for the Size property. Examples:
FolderObject.Drive PropertyFolderObject.Drive property is a read only property to get and return the drive letter on which the specified folder object instance resided. Syntax:FolderObjectName.Drive Or in VBScript. Imply driveletter =FolderObjectName.Drive Or in JScript. Imply driveletter =FolderObjectName.Drive Parameters:driveletter The parameter "driveletter" is the name assigned to the drive letter returned by the drive property referred to the specified Folder object. FolderObjectName The parameter "FolderObjectName" is used to specify the name of the instance of the Folder Object related to. Returns:string The return value of the drive property is a string of the letter name representation of the drive on which the specified folder object instance resided. Remarks:FolderObjectName refers to a Folder Object. And File object is another possible alternate object for the Drive property. Examples:
FolderObject.IsRootFolder PropertyFolderObject.IsrootFolder property is a property to check and return a value indictating whether the specified folder object instance is a root folder or not. Syntax:FolderObjectName.IsRootFolder Or in VBScript. Imply rootfolderflag =FolderObjectName.IsRootFolder Or in JScript. Imply rootfolderflag =FolderObjectName.IsRootFolder Parameters:rootfolderflag The parameter "rootfolderflag" is the name assigned to the boolean value returned by the IsRootFolder property referred to the specified Folder object. FolderObjectName The parameter "FolderObjectName" is used to specify the name of the instance of the Folder Object related to. Returns:boolean value The return value of the IsRootFolder property is a boolean value to indicate whether the specified folder object instance is a roof folder or not. IsRootFolder property returns True only when the specified folder is the root folder and returns False if the specified folder is not. Remarks:FolderObjectName refers to a Folder Object. Examples:
FolderObject.Name PropertyFolderObject.Name property is a read/write property to set and return the name of the specified folder object instance. Syntax:FolderObjectName.Name [= newname] Or in VBScript. Imply foldername =FolderObjectName.Name FolderObjectName.Name =newfoldername Or in JScript. Imply foldername =FolderObjectName.Name FolderObjectName.Name =newfoldername Parameters:foldername The parameter "foldername" is the name assigned to the string returned by the Name property referred to the specified Folder object. FolderObjectName The parameter "FolderObjectName" is used to specify the name of the instance of the Folder Object related to. newfoldername The optional parameter "newfoldername" is used to specify the new folder name to be assigned by the Name property to the folder name referred to the specified Folder object. Returns:string The return value of the Name property is the string of existing folder name refered to the specified folder object instance. Remarks:FolderObjectName refers to a Folder Object. And File object is another possible alternate object for the Name property. Examples:
FolderObject.Path PropertyFolderObject.Path property is a property to get and return the path of the specified folder object instance. Syntax:FolderObjectName.Path Or in VBScript. Imply folderpath =FolderObjectName.Path Or in JScript. Imply folderpath =FolderObjectName.Path Parameters:folderpath The parameter "folderpath" is the name assigned to the string returned by the Name property referred to the specified Folder object. FolderObjectName The parameter "FolderObjectName" is used to specify the name of the instance of the Folder Object related to. Returns:string The return value of the Path property is the string of path refered to the specified folder object instance. Remarks:FolderObjectName refers to a Folder Object. And File and Drive objects are another possible alternate objects for the Path property. Examples:
|
Sideway BICK Blog 08/05 |