Converts a Microsoft MS-DOS path to a canonicalized URL
#include <WinAPIShPath.au3>
_WinAPI_UrlCreateFromPath ( $sFilePath )
$sFilePath | The MS-DOS path. |
Success: | The URL. |
Failure: | Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code. |
Search UrlCreateFromPath in MSDN Library.
#include <WinAPIShPath.au3>
Local $sPath = @ScriptFullPath
$sPath = _WinAPI_UrlCreateFromPath($sPath)
ConsoleWrite($sPath & @CRLF)
$sPath = _WinAPI_PathCreateFromUrl($sPath)
ConsoleWrite($sPath & @CRLF)