Run VBScript function
Call one function in a VBScript file and return its result as text (Windows only).
Command in the Scripts toolkit · id ooa.script/run_vbscript_function · 6 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| File | File | No | VBScript file (.vbs) that defines the function. | |
| Function | String | Yes | Function name. | |
| Arguments | List | No | Arguments, in order: numbers and true/false are passed as VBScript numbers and booleans, empty values as Empty, everything else as text. | |
| Timeout (seconds) | Number | No | 300 | Maximum run time. |
| Fail on error | Boolean | No | true | Fail the step when the function raises an error; when false the error is returned in error. |
| Script | String | No | Code that defines the function, typed in the agent, instead of a file. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | Value returned by the function, as text. |
| output | String | Other text the script wrote. |
| error | String | Error raised by the function when fail_on_error is false; empty on success. |