![]() |
![]() |
|||||||||||||||||||||||||||||||||||||
|
Copy |
Copies a folder and its contents from one location to another. |
CreateTextFile |
Creates a file with a specified name and returns a TextStream object. |
Delete |
Deletes a folder and its contents. |
Move |
Moves a folder and its contents from one location to another. |
Properties
Attributes |
The file system attributes of the folder. |
DateCreated |
The date and time that a folder was created. |
DateLastAccessed |
The date and time that a folder was last accessed. |
DateLastModified |
The date and time that a folder was last modified. |
Drive |
The drive letter of the drive on which the file resides. On UNIX, this property is always `/'. |
Files |
A collection of all File objects contained in the folder. See the Files collection section for details. |
IsRootFolder |
Boolean indicating whether this folder is the root folder of a drive. |
Name |
The name of the folder. |
ParentFolder |
The Folder object that contains this folder. |
Path |
The file system path to this folder. |
ShortName |
The short name used by programs that require 8.3 file names. This property is not currently supported on UNIX. |
ShortPath |
The short path used by programs that require 8.3 file names This property is not currently supported on UNIX. |
Size |
The size, in bytes, of all files and subfolders contained in the folder. |
SubFolders |
A collection of all Folder objects contained in the folder. See the Folders collection for details. |
Type |
Information about the type of a folder. This property is not currently supported on UNIX. |
Remarks
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 © 2000 Chili!Soft