Returns the full file path without command line parameters.

Syntax

UnquotedPath = SRP_Path("GetPath", Path)

Parameters

ParameterDescription
PathA path with or without command line parameters.

Returns

The path without command line parameters.

Remarks

The GetPath service extracts only the path, unquoted, if the original path has command line parameters. If there were no command line parameters, the path is returned unquoted.

Example

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

Result will be "C:\path1\path with spaces\filename.ext".

See Also

GetComponents, GetDirectory, GetExtension, GetFilename, GetParameters

  • No labels