Deadline Scripting Reference
10.4.1.8
|
Process utility functions. More...
Static Public Member Functions | |
static bool | IsProcessRunning (string name) |
Checks if a process is running. More... | |
static void | KillParentAndChildProcesses (int parentId) |
Kill the parent process and all of its child processes. More... | |
static bool | KillProcesses (string name) |
Kills all processes with the given name. More... | |
static bool | KillProcesses (string name, int attempts) |
Attempts to kill all processes with the given name a specified number of times. More... | |
static Process | ShellExecute (string filename) |
Shell executes the specified file. More... | |
static Process | ShellExecute (string filename, string verb) |
Shell executes the specified file using the specified verb. More... | |
static Process | SpawnProcess (string executable) |
Spawns a process. More... | |
static Process | SpawnProcess (string executable, string arguments) |
Spawns a process. More... | |
static Process | SpawnProcess (string executable, string arguments, string workingDirectory) |
Spawns a process. More... | |
static Process | SpawnProcess (string executable, string arguments, string workingDirectory, ProcessWindowStyle windowStyle) |
Spawns a process. More... | |
static Process | SpawnProcess (string executable, string arguments, string workingDirectory, ProcessWindowStyle windowStyle, bool redirectStdOutput) |
Spawns a process. More... | |
static bool | WaitForExit (Process process, int timeoutMilliseconds) |
Waits for a process to exit. More... | |
static bool | WaitForProcessToStart (string name, int timeoutMilliseconds) |
Waits for a process with the given name to start. More... | |
Process utility functions.
|
static |
Checks if a process is running.
name | The process name. |
|
static |
Kill the parent process and all of its child processes.
parentId | The parent process' ID. |
|
static |
Kills all processes with the given name.
name | The process name. |
|
static |
Attempts to kill all processes with the given name a specified number of times.
name | The process name. |
attempts | The number of attempts before we give up. |
|
static |
Shell executes the specified file.
filename | The file name. |
|
static |
Shell executes the specified file using the specified verb.
filename | The file name. |
verb | The verb (ie: explore). Specify null to omit the verb. |
|
static |
Spawns a process.
executable | The executable file name. |
|
static |
Spawns a process.
executable | The executable file name. |
arguments | The arguments. |
|
static |
Spawns a process.
executable | The executable file name. |
arguments | The arguments. |
workingDirectory | The working directory. |
|
static |
Spawns a process.
executable | The executable file name. |
arguments | The arguments. |
workingDirectory | The working directory. |
windowStyle | The window style. |
|
static |
Spawns a process.
executable | The executable file name. |
arguments | The arguments. |
workingDirectory | The working directory. |
windowStyle | The window style. |
redirectStdOutput | If standard output should be redirected. |
|
static |
Waits for a process to exit.
process | The process object. |
timeoutMilliseconds | The timeout in milliseconds. Specify -1 to wait until the process exits. |
|
static |
Waits for a process with the given name to start.
name | The process name. |
timeoutMilliseconds | The timeout in milliseconds. Specify -1 for no timeout. |