|
The Folder object provides access to all the properties of a folder.
Copies a folder and its contents from one location to another. | |
Creates a file with a specified name and returns a TextStream object. | |
Deletes a folder and its contents. | |
Moves a folder and its contents from one location to another. |
The file system attributes of the folder. | |
The date and time that a folder was created. | |
The date and time that a folder was last accessed. | |
The date and time that a folder was last modified. | |
The drive letter of the drive on which the file resides. On UNIX, this property is always '/'. | |
A collection of all File objects contained in the folder. See the Files collection section for details. | |
Boolean indicating whether this folder is the root folder of a drive. | |
The name of the folder. | |
The Folder object that contains this folder. | |
The file system path to this folder. | |
The short name used by programs that require 8.3 file names. This property is not currently supported on UNIX. | |
The short path used by programs that require 8.3 file names This property is not currently supported on UNIX. | |
The size, in bytes, of all files and subfolders contained in the folder. | |
A collection of all Folder objects contained in the folder. See the Folders collection for details. | |
Information about the type of a folder. This property is not currently supported on UNIX. |
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.