将Microsoft MS-DOS路径转换为规范URL
#Include <WinAPIEx.au3>
_WinAPI_UrlCreateFromPath ( $sPath )
$sPath | MS-DOS路径 |
成功: | 返回URL |
Failure | Empty string and sets the @error flag to non-zero, @extended flag may contain the system error code. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Path = @ScriptFullPath
$Path = _WinAPI_UrlCreateFromPath($Path)
ConsoleWrite($Path & @CR)
$Path = _WinAPI_PathCreateFromUrl($Path)
ConsoleWrite($Path & @CR)