Shell.Close

From Xojo Documentation

Method

Shell.Close()

Supported for all project types and targets.

Shuts down the running command. Calling Close triggers the Completed event.

Example

Var sh As New Shell
.
.
sh.Close