Specifications

Static functions
Executes command synchronously and passes stdin to its
standard input if specified. When the program ends its output
execute( command : String,
stdin : String ) : int
is accessible through Process.stdout and Process.stderr.
command can contain both the program and command line
arguments, separated by spaces. The function returns the
executed command's return code on exit.
Same as above, except that command is an Array of strings,
where the first item isthe name of the program and the following
execute( command : String[ ],
stdin : String ) : int
items are command line arguments. This version is useful if you
have arguments that contain spaces or other characters that
would need to be quoted if you just passed a single string
command line, since it takes care of the quoting for you.
Starts command in a new process and detaches from it.
command can contain both the program and command line
bool startDetached (
command : String )
arguments, separated by spaces. The function returns true on
success; otherwise returns false. The detached process will
continue to live even if the calling process exits.
Same as above, except that its is possible to provide a list of
command line arguments.
bool startDetached (
command : String, arguments
: String[ ] )
Constructors
Creates a Process object without specifying the program or any
arguments. This does not start a process.
Process()
Creates a Process object that will execute command. This does not
start the process.
Process( command :
String )
Same as above, except that command is an Array of strings, where
the first item is the name of the program and the following items
Process( command :
String[ ] )
are command line arguments. This version is useful if you have
arguments that contain spaces or other characters that would need
to be quoted if you just passed a single string command line, since
it takes care of the quoting for you.
Properties
Contains an Array of strings where the first item is the program
to execute and the following items are the command line
arguments.
arguments : String[ ]
Contains the working directory for the process.
workingDirectory : String
True if the process is currently running; otherwise false. This
property is read-only.
running : Boolean
423
Enfocus Switch 10