You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Converts a Windows path into a file URL.

Syntax

URL = SRP_Path("PathToUrl", Path)

Parameters

ParameterDescription
PathA path without command line parameters.

Returns

The path reformatted into a URL

Remarks

The PathToUrl service prefixes the given path with "file://" if it isn't there already.

Example

Result = SRP_Path("PathToUrl", "C:\path\filename.txt")

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

See Also

IsURL, UrlToPath

  • No labels