parse_command_line()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Parses a Unicode command-line string and returns a dynamic array of the command-line arguments.
Syntax
parse_command_line(
command_line, parser_type)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
command_line | string |
✔️ | The command line value to parse. |
parser_type | string |
✔️ | 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")
Output
Result |
---|
["echo","hello world!"] |