[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

SplitCmdLine

Splits the specified command line into program and parameter values.

Declaration

Source position: lazfileutils.pas line 182

procedure SplitCmdLine(

  const CmdLine: string;

  out ProgramFilename: string;

  out Params: string

);

Arguments

CmdLine

  

Command line examined in the function.

ProgramFilename

  

Executable name found in the command line.

Params

  

Parameters found in the command line.

Description

SplitCmdLine is a routine used to separate values found in the CmdLine argument into the ProgamFilename and Params arguments. Outer single and double quote characters found in the CmdLine argument are removed in the method.

No actions are performed in the routine when CmdLine is an empty string (''); the output parameters are set to empty string values as well.


Version 3.2 Generated 2024-02-25 Home