ProcessStartSpecification record

Namespace Runic.Platform.Administration.Windows.Processes in Runic.Platform.Administration.Windows 0.23.0

public sealed record ProcessStartSpecification : IEquatable<ProcessStartSpecification>

Inherits or implements IEquatable.

A program to start and wait for.

Parameters

FileName

The program, a full path or a name found on PATH.

Constructors

ProcessStartSpecification

public ProcessStartSpecification(string FileName)

A program to start and wait for.

Parameters

FileName

The program, a full path or a name found on PATH.

Properties

Arguments

public string Arguments { get; init; }

The command-line arguments as one string, quoted by the caller as the program expects (for example /i "C:\\Setup Files\\app.msi" /qn for msiexec).

Elevated

public bool Elevated { get; init; }

Starts the program elevated through the shell (the runas verb), which shows the UAC prompt when the caller is not elevated. A declined prompt fails with native error 1223.

FileName

public string FileName { get; init; }

The program, a full path or a name found on PATH.

WorkingDirectory

public string? WorkingDirectory { get; init; }

The working directory; null uses the current directory.