# Function Reference

# _WinAPI_UrlCreateFromPath

Converts a Microsoft MS-DOS path to a canonicalized URL

#include <WinAPIShPath.au3>
_WinAPI_UrlCreateFromPath ( $sFilePath )

## Parameters

$sFilePath | The MS-DOS path.

## Return Value

Success: | The URL.
Failure: | Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

## See Also

Search UrlCreateFromPath in MSDN Library.

## Example

    #include <WinAPIShPath.au3>

    Local $sPath = @ScriptFullPath

    $sPath = _WinAPI_UrlCreateFromPath($sPath)
    ConsoleWrite($sPath & @CRLF)

    $sPath = _WinAPI_PathCreateFromUrl($sPath)
    ConsoleWrite($sPath & @CRLF)