4D v12.4

CREATE FOLDER

Home

 
4D v12.4
CREATE FOLDER

 

CREATE FOLDER 


 

CREATE FOLDER ( folderPath ) 
Parameter Type   Description
folderPath  String in Pathname to new folder to create

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.

The following example creates the “Archives” folder in the folder of the database:

 CREATE FOLDER("Archives")

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")

The following example creates the “Archives” folder at the root level of the C volume:

 CREATE FOLDER("C:\\Archives")

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

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 475

The OK variable is changed by the command

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

FOLDER LIST
Test path name