Show / Hide Table of Contents

Class run

Execute or open programs, files, folders, web pages, etc, start new threads.

public static class run

Namespace: Au
Assembly: Au.dll
Inheritance
object
run

Methods

Name Description
console(Action<string>, string, string, string, Encoding, bool)

Runs a console program in hidden mode, waits until its process ends, and gets its output text. Uses a callback function that receives text lines in real time.

console(string, string, string, Encoding)

Runs a console program in hidden mode, waits until its process ends, and prints its output text. Writes text lines to the output in real time.

console(out string, string, string, string, Encoding)

Runs a console program in hidden mode, waits until its process ends, and gets its output text.

it(string, string, RFlags, ROptions)

Runs/opens a program, document, directory (folder), URL, new email, etc.

itSafe(string, string, RFlags, ROptions)

Calls run.it and handles exceptions. If it throws exception, writes it to the output as warning and returns null.

selectInExplorer(string)

Opens parent folder in File Explorer (folder window) and selects the file.

thread(Action, bool, bool)

Starts new thread: creates new System.Threading.Thread object, sets some properties and calls System.Threading.Thread.Start.

thread(out int, out Thread, Action, bool, bool, Action)

Starts new thread like thread(Action, bool, bool) and gets thread handle and native id.