ShellUtils.ExecuteCommandLine

Executes a Windows Command Line using Shell Execute as a single command line with parameters. This method handles parsing out the executable from the parameters.

public static void ExecuteCommandLine(string fullCommandLine,
	string workingFolder,
	int waitForExitMs,
	string verb,
	ProcessWindowStyle windowStyle)

Parameters

fullCommandLine
Full command line - Executable plus arguments. Recommend double quotes for best command parsing experience

workingFolder
Optional - the folder the executable runs in. If not specified uses current folder.

waitForExitMs
Optional - Number of milliseconds to wait for completion. 0 don't wait.

verb
Optional - Shell verb to apply. Defaults to "Open"

windowStyle
Optional - Windows style for the launched application. Default style is normal


See also:

Class ShellUtils

© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic