Bagikan melalui


CommandLineBuilder.AppendFileNameWithQuoting(String) Method

Definition

Appends a file name. Quotes are added if they are needed. If the first character of the file name is a dash, "." is prepended to avoid confusing the file name with a switch This method does not append a space to the command line before executing.

protected:
 void AppendFileNameWithQuoting(System::String ^ fileName);
protected void AppendFileNameWithQuoting (string fileName);
member this.AppendFileNameWithQuoting : string -> unit
Protected Sub AppendFileNameWithQuoting (fileName As String)

Parameters

fileName
String

The file name to append

Examples

AppendFileNameWithQuoting("-StrangeFileName.cs") => ".-StrangeFileName.cs"

Remarks

In the future, this function may fixup 'text' to handle literal embedded quotes.

Applies to