CREATE FOLDER

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


CREATE FOLDER (folderPath)

ParameterTypeDescription
folderPathStringPathname to new folder to create

Description

The CREATE FOLDER command creates a folder according to the pathname you pass in folderPath.

If you pass a name, the folder is created in the folder of the database. If you pass a pathname, it must refer to a valid path up to the name of the folder you want to create, starting at the root level of a volume or at the level of the database folder.

Examples

1. The following example creates the "Archives" folder in the folder of the database:

      CREATE FOLDER("Archives")

2. The following example creates the Archives folder in the folder of the database, then it creates the "January" and "February" subfolders:

      CREATE FOLDER("Archives")
      CREATE FOLDER("Archives\\January")
      CREATE FOLDER("Archives\\February")

3. The following example creates the "Archives" folder at the root level of the C volume:

      CREATE FOLDER("C:\\Archives")

4. The following example will fail if there is no "NewStuff" folder at the root level of the C volume:

      CREATE FOLDER("C:\\NewStuff\\Pictures") ` WRONG, cannot create two folder levels in one call

See Also

FOLDER LIST, Test path name.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next