Converts a file URL into a Windows path.

Syntax

Path = SRP_Path("UrlToPath", URL)

Parameters

ParameterDescription
URLA URL beginning with "file://"

Returns

The URL reformatted into a path.

Remarks

The UrlToPath service removes the file://" prefix if it exists.

Example

Result = SRP_Path("UrlToPath", "file://C:\path\filename.txt")

Result will be "C:\path\filename.txt"

See Also

IsURL, PathToUncPathToUrl

  • No labels