Description

Creates a new directory.

Syntax

successful = RTI_OS_Directory( "CREATE", directory <, createPath> )

Parameters

directorycreatePath
The directory path to be created.<Optional> A boolean value. If set to TRUE a multiple levels may be created.

Return Value

A boolean value.

Example

declare function RTI_OS_Directory
 
// Create a new directory called mydir in c:\revsoft.
directory = "c:\revsoft\mydir"
result = RTI_OS_Directory( "CREATE", directory)

Example 2

declare function RTI_OS_Directory
$Insert Logical
 
// create the full directory structure c:\revsoft\newdir\mydir
declare function rti_os_directory
directory = "c:\revsoft\newdir\mydir"
createPath = TRUE$
result = RTI_OS_Directory( "CREATE", directory, createPath)
  • No labels