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

 

JScript Folder Object

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

Methods: JScript Folder Object

JScript Folder Object Copy Method

Copies a folder and its contents from one location to another.

JScript Folder Object CreateTextFile Method

Creates a file with a specified name and returns a TextStream object.

JScript Folder Object Delete Method

Deletes a folder and its contents.

JScript Folder Object Move Method

Moves a folder and its contents from one location to another.

Properties: JScript Folder Object

JScript Folder Object Attributes Property

The file system attributes of the folder.

JScript Folder Object DateCreated Property

The date and time that a folder was created.

JScript Folder Object DateLastAccessed Property

The date and time that a folder was last accessed.

JScript Folder Object DateLastModified Property

The date and time that a folder was last modified.

JScript Folder Object Drive Property

The drive letter of the drive on which the file resides. On UNIX, this property is always '/'.

JScript Folder Object Files Property

A collection of all File objects contained in the folder. See the Files collection section for details.

JScript Folder Object IsRootFolderProperty

Boolean indicating whether this folder is the root folder of a drive.

JScript Folder Object Name Property

The name of the folder.

JScript Folder Object ParentFolder Property

The Folder object that contains this folder.

JScript Folder Object Path Property

The file system path to this folder.

JScript Folder Object ShortName Property

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

JScript Folder Object ShortPath Property

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

JScript Folder Object Size Property

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

JScript Folder Object SubFolders Property

A collection of all Folder objects contained in the folder. See the Folders collection for details.

JScript Folder Object Type Property

Information about the type of a folder. This property is not currently supported on UNIX.

Remarks: JScript Folder Object

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

function ShowFolderInfo(folderspec)

{

var fs, folder, s;

fs = new ActiveXObject("Scripting.FileSystemObject");

folder = fs.GetFolder(folderspec);

s = folder.DateCreated;

Response.Write(s);

}

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