BBjCommandLineObject::setWorkingDirectory

Description

In BBj 4.0 and higher, this method sets the working directory specified by the BBjCommandLineObject.

Syntax

Return Value

Method

void

setWorkingDirectory(string wd)

Parameters

Variable

Description

wd

Specifies the working directory.

Return Value

None.

Remarks

In a traditional BBj SCALL, it is specified as –WD<working directory>.

Example

REM get and set WorkingDirectory.src

REM get CommandLine Object
myCMD! = BBjAPI().getConfig().getCurrentCommandLineObject()

myCmd!.setWorkingDirectory("C:/bbjdemos/")

PRINT myCMD!.getWorkingDirectory()

See Also

BBjAPI

BBjConfig

BBjAPI::newBBjSession

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.