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 a process

Returning information

Running and stopping

Querying the process state

Configuring a process

Working with termination handlers

Working with constants

Working with notifications

Working with notification messages

Deprecated

Instance Properties

See Also

Scripts and External Tasks