Removes the command line parameters.
NewPath = SRP_Path("RemoveParameters", Path) |
Parameter | Description |
---|---|
Path | A path with or without command line parameters. |
The path without the command line parameters.
The RemoveParameters service removes any command line parameters. If not command line parameters are present, the path is simply return unaltered. Quotes are preserved.
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".
GetParameters, RemoveBackslash, RemoveDirectory, RemoveExtension, RemoveFilename