DeleteFolder

Description:

baDeleteFolder deletes an empty folder.

Platforms:

Windows and Macintosh

Usage:

Result = baDeleteFolder( FolderName )

Arguments:

String.
FolderName is the folder to delete.

Returns:

Integer.
Returns 1 if the folder was successfully deleted or doesn't exist, else 0.

Examples:

Director:
OK = baDeleteFolder( "c:\data" )

Authorware:
OK := baDeleteFolder( "c:\\data" )
 

Notes:

This function will only delete a folder that doesn't contain any files or sub-directories.
 

See also:

baFolderExists
baCreateFolder