Shell.Mode

Controls the mode in which the shell operates.
0-Synchronous.

Syntax
Mode( Integer ) as

Parameters
Integer |

# Notes

The shell executes its command and returns the result in the Result property when the script has finished running.

1-Asynchronous. The shell executes its command and returns data via the DataAvailable event. It does not wait for a command to finish before executing the next command. An asynchronous shell script can run in the background.

2-Interactive. The script can display a prompt and the user can interact with the shell script while it is running. Data can be sent to a running shell session with the Write method and data is returned via the DataAvailable event. See the example interactive shell in the Examples section.