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