SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.NewTask()
(SBM On-Premise only) Executes an external application as a new process, passing any given arguments.
Parameter | Type | Description |
---|---|---|
appName |
string |
The appName can be any external application.
For details on using ScriptAppPath, refer to Setting Script Application Paths. |
arg (up to 6) |
Variant |
Optional. Between 0-6 parameters to pass to the command. For more than 6 parameters, use the Vector signature. |
args |
Vector |
Parameters to pass to the command. |
Type | Description |
---|---|
int |
Returns the operating system handle of the new process. This handle is useless within SBM ModScript, but occasionally a script may have some reason to pass the handle to another program. The application's exit code is unavailable because this function generally returns before the application exits. |
SBM ModScript version: 11.3.
The new process runs concurrently; the script does not wait for it to exit.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.