parse_command_line()

Parses a Unicode command-line string and returns a dynamic array of the command-line arguments.

Syntax

parse_command_line(command_line,parser_type)

Arguments

  • command_line: Command line to parse.
  • parser_type: The only value that is currently supported is "windows", which parses the command line the same way as CommandLineToArgvW.

Returns

A dynamic array of the command-line arguments.

Example

print parse_command_line("echo \"hello world!\"", "windows")
Result
["echo","hello world!"]