createProcess()

Synopsis

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.

Syntax

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 .

Example 1

Start Notepad
Intent >createProcess("Notepad", wait? := False) 
--> 0