BBInvoker::run

Description

In BBj 9.0 and higher, this method runs a browser or command asynchronously on the client machine.

Syntax

Return Value

Method

int

run(string commandOrURL)

Parameters

Variable

Description

commandOrURL

Specifies a command or URL to invoke.

Return Value

Returns the system return code.

Remarks

If the passed string is determined to be a  URL then a browser is invoked, otherwise BBj treats it as a command.

Example

rem 'Demo on how to use the BBInvoker run method

use ::bbinvoker.bbj::BBInvoker

declare BBjNumber returnCode
declare BBjString command$

command$ = "notepad.exe"
returnCode = BBInvoker.run(command$)

See Also

BBj Object Syntax