Folders.Add() (Method)

Add a folder to the collection.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyFolders.Add(aName)
Argument list:aNameThe name of the new Folder object to be created

If you refer to an existing folder within the file system, an object is created to encapsulate it and that Folder object is then added to the Folders collection.

You can also create new folders by using a name that does not yet already exist within the folder that this collection is a child object of. The new folder will be created and then encapsulated as before.

See also:Folder object