DirectoryCreate Procedure

Version 6

Creates a directory, including all intervening directories if necessary.

Syntax

[ bRet = ] DirectoryCreate ( sDirPath )

The DirectoryCreate procedure syntax has the following parts:

 

Name

Type

Description

bRet

Bool

True if successful; False otherwise

sDirPath

Val BString

Name of directory to create

Comments

If the path already exits, it returns true.

Example

The following example creates the backup directory:
 

! create backup directory if necessary

if not DirectoryCreate("c:\\logfiles\\TestExec\\Backup") then return

See Also

DirectoryDelete, DirectoryRename