Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.39 KB

File metadata and controls

48 lines (32 loc) · 1.39 KB

ShellCommand.Execute method (1 of 2)

Runs a windows command using the provided ProcessStartInfo

public static void Execute(ProcessStartInfo info)

Exceptions

exception condition
FileNotFoundException Thrown when unable to find the file specified in the command
Win32Exception Thrown when error occurs during the execution of the command

See Also


ShellCommand.Execute method (2 of 2)

Runs a windows command using the provided ProcessStartInfo using a custom execute command function

public static void Execute(Func<ProcessStartInfo, Process> startProcess, ProcessStartInfo info)
parameter description
startProcess allows you to pass in a custom command execution function
info allows you to pass in the info that will be passed to startProcess

Exceptions

exception condition
FileNotFoundException Thrown when unable to find the file specified in the command
Win32Exception Thrown when error occurs during the execution of the command

See Also