[Overview][Classes][Procedures and functions][Index] Reference for unit 'UTF8Process' (#lazutils)

TProcessUTF8.ParseCmdLine

Separates values in the CommandLine argument into the Executable and Parameters properties.

Declaration

Source position: utf8process.pp line 50

public procedure TProcessUTF8.ParseCmdLine(

  const CmdLine: string;

  ReadBackslash: Boolean = False

);

Arguments

CmdLine

  

Command line examined and parsed in the method.

ReadBackslash

  

When True, the BackSlash character is used to quote character values.

Description

ParseCmdLine is used to separate the values in the CmdLine argument into the values used for the Executable and Parameters properties.

ReadBackSlash indicates if the BackSlash character (\) is used to quote a character value in the command line. The default value for the argument is False.

ParseCmdLine creates an internal TStringList instance used to store values returned from the SplitCmdLineParams routine in lazfileutils.pas. The first value in the string list (when present) is stored in the Executable property. The remaining values are stored in the Parameters property.

ParseCmdLine is provided as a convenience method. The same result can be achieved by setting the values in the Executable and Parameters properties directly.

See also

SplitCmdLineParams

  

Splits command line parameters separated by whitespace characters into the specified TStrings instance.

TProcess.Executable

TProcess.Parameters


Version 3.2 Generated 2024-02-25 Home