CreateFolder

Description:

baCreateFolder creates a new folder.

Platforms:

Windows and Macintosh

Usage:

Result = baCreateFolder( FolderName )

Arguments:

String.
FolderName is the folder to create.

Returns:

Integer.
Returns 1 if the folder was successfully created or already exists, else 0.

Examples:

Director:
OK = baCreateFolder( "c:\data\courses" )

Authorware:
OK := baCreateFolder( "c:\\data\\courses" )
 

Notes:

This function will create any intermediate folders that are needed. For example, baCreateFolder( "c:\data\courses\biology" ) will create "c:\data", then "c:\data\courses", then " c:\data\courses\biology".
 

See also:

baFolderExists
baDeleteFolder