SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.CmdLineWait()
(SBM On-Premise only) Executes the string cmdLine in the operating system's command line interpreter and waits for the command to finish.
Parameter | Type | Description |
---|---|---|
cmdLine |
string |
This argument can contain redirect symbols, pipe characters, wildcards, and anything else legal at a command line prompt. The Operating System account that is executing the script on the server requires privilege to perform any command is invoked. |
Type | Description |
---|---|
int |
The command line interpreter's return value, which is the exit code of the program or batch file called. |
SBM ModScript version: 11.3.
When searching for applications or batch files, the ScriptAppPath registry setting is not used, but the OS %Path% variable is. Refer also to Ext.NewTask() and Ext.NewTaskWait().
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.