BBjCommandLineObject::getWorkingDirectory

Description

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

Syntax

Return Value

Method

string

getWorkingDirectory()

Parameters

None.

Return Value

Returns the working directory specified by the BBjCommandLineObject.

Remarks

In a traditional BBj SCALL, this 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.