Contents

Process

An object that represents a subprocess of the current process.

Declaration

class Process

Overview

Using this class, your program can run another program as a subprocess and monitor that program’s execution. Unlike Thread, it doesn’t share memory space with the process that creates it.

A process operates within an environment defined by the current values for several items: the current directory, standard input, standard output, standard error, and the values of any environment variables, inheriting its environment from the process that launches it. If there are any environment variables that should be different for the subprocess (for example, if the current directory needs to change), change it in the instance after initialization, before your app launches it. Your app can’t change a process’s environment while it’s running.

You can only run the subprocess once per instance. Subsequent attempts raise an error.

Topics

Creating and Initializing

Returning Information

Running and Stopping

Querying the State

Configuring

Termination Handler

Constants

Notifications

Deprecated

Structures

Instance Properties

See Also

Scripts and External Tasks