PowershellSettingsExtensions.

UseWorkingDirectory(PowershellSettings, DirectoryPath) Method

Summary

Sets the working directory for the process to be started.

Syntax

public static PowershellSettings UseWorkingDirectory(this PowershellSettings settings, DirectoryPath path)

Parameters

Name Type Description
settings PowershellSettings The powershell settings.
path DirectoryPath The working directory where the powershell command is to be started.

Return Value

Type Description
PowershellSettings The same PowershellSettings instance so that multiple calls can be chained.