Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 696 Bytes

File metadata and controls

26 lines (18 loc) · 696 Bytes

IPublicAPI.ShellRun method

Run a shell command

public void ShellRun(string cmd, string filename = "cmd.exe")
parameter description
cmd The command or program to run
filename the shell type to run, e.g. powershell.exe

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