Removes the command line parameters.

Syntax

NewPath = SRP_Path("RemoveParameters", Path)

Parameters

ParameterDescription
PathA path with or without command line parameters.

Returns

The path without the command line parameters.

Remarks

The RemoveParameters service removes any command line parameters. If not command line parameters are present, the path is simply return unaltered. Quotes are preserved.

Example

Path = 'C:\path1\path2\filename.ext a=1 /b=2 -c="stuff with spaces"'
Result = SRP_Path("RemoveParameters", Path)

Result will be "C:\path1\path2\filename.ext".

See Also

GetParametersRemoveBackslash, RemoveDirectory, RemoveExtension, RemoveFilename

  • No labels