Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string ArgsToCommandLine(IEnumerable<string>)

Declaration

public static string ArgsToCommandLine(
    IEnumerable<string> args
)

Summary

Given a number of argument strings, constructs a single command line string with all the arguments escaped correctly so that a process using standard Windows API for parsing the command line will receive exactly the strings passed in here. See Remarks.

Remarks

The string is only valid for passing directly to a process. If the target process is invoked by passing the process name + arguments to cmd.exe then further escaping is required, to counteract cmd.exe's interpretation of additional special characters. See CommandRunner.EscapeCmdExeMetachars(string).