Runs a program in a separate process, with control over whether the new process runs asynchronously or the Intent process waits for the new process to complete. Returns zero if the new process is created successfully. Returns -1 if there is an error creating the new process.
createProcess ( commandLine As String, _ Optional wait? As Boolean = True ) As Integer
Argument | Type | Description |
---|---|---|
cmdLine | String | The command line to execute. The first word up to the first whitespace character should be the name of the program to execute. Remaining text are command line arguments available to the program. |
wait? | Boolean | Optional; if True , the Intent process waits for the created process to complete; default value is True . |
Intent >createProcess("Notepad", wait? := False) --> 0