Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Folder Object

The VBScript Folder object provides access to all the properties of a folder.

Methods: VBScript Folder Object

VBScript Folder Object Copy Method

Copies a folder from one location to another.

VBScript Folder Object Delete Method

Deletes a folder.

VBScript Folder Object Move Method

Moves a folder from one location to another.

VBScript Folder Object CreateTextFile Method

Creates a file and returns a TextStream object.

Property: VBScript Folder Object

VBScript Folder Object Attributes Property

The attributes of a folder.

VBScript Folder Object DateCreated Property

The date and time a folder was created.

VBScript Folder Object DateLastAccessed Property

The date and time that the folder was last accessed.

VBScript Folder Object DateLastModified Property

The date and time that the folder was last modified.

VBScript Folder Object Drive Property

The drive letter of the drive on which the folder resides.

VBScript Folder Object Files Property

A Files collection of all File objects in the folder.

VBScript Folder Object IsRootFolder Property

True if this is the root folder of a drive.

VBScript Folder Object Name Property

The name of the folder.

VBScript Folder Object ParentFolder Property

The Folder object for the parent of the folder.

VBScript Folder Object Path Property

The file system path to the folder.

VBScript Folder Object ShortName Property

The short name used by programs that require 8.3 names. This property is not currently supported on UNIX.

VBScript Folder Object ShortPath Property

The short path used by programs that require 8.3 names. This property is not currently supported on UNIX.

VBScript Folder Object Size Property

The size, in bytes, of all files and subfolders contained in a folder.

VBScript Folder Object SubFolders Property

A Folders collection containing all the folders in a Folder object.

Remarks: VBScript Folder Object

The following code illustrates how to obtain a Folder object and how to return one of its properties:

Sub ShowFolderInfo(folderspec)

Dim fs, f, s,

Set fs = CreateObject("Scripting.FileSystemObject")

Set f = fs.GetFolder(folderspec)

s = f.DateCreated

Response.Write s

End Sub

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.