Returns an @FM delimited list of command line parameters.
Syntax
ParameterArray = SRP_Path("GetParameters", Path)
Parameters
Parameter | Description |
---|---|
Path | A path with or without command line parameters. |
Returns
The command line parameters, if any.
Remarks
The GetParameters service extracts the command line parameters if there are any to be found. In Windows, command line parameters are space delimited. This service takes into account quotation marks, ensuring that quoted paths are properly ignored and quoted parameters are preserved in whole. Each parameter is trimmed of leading or trailing whitespace, and all parameters are returned in order of appearance in an @FM delimited array.
Example
Path = 'C:\path1\path2\filename.ext a=1 /b=2 -c="stuff with spaces"' Result = SRP_Path("GetParameters", Path)
Result1 will be an @FM delimited array with three elements: 'a=1', '/b=2', and '-c="stuff with spaces"'.
See Also
GetComponents, GetDirectory, GetExtension, GetFilename, GetPath, RemoveParameters