CreateDirectory

Description

Creates a directory.

Applies to

File system

Syntax

CreateDirectory ( directoryname )

Argument

Description

directoryname

String for the name of the directory you want to create

Returns

Integer. Returns 1 if the function succeeds and -1 if an error occurs.

Examples

Example 1

This example creates a new subdirectory in the current path and then makes the new subdirectory the current directory:

string  ls_path="my targets"

integer li_filenum

CreateDirectory ( ls_path )

li_filenum = ChangeDirectory( ls_path )

See also