将文件URL转换为MSDOS路径
#Include <WinAPIEx.au3>
_WinAPI_PathCreateFromUrl ( $sUrl )
$sUrl | The URL. |
成功: | 返回DOS路径 |
失败: | 返回空字符串并设置@error非0, @extended标记包含系统错误代码 |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Path = @ScriptFullPath
$Path = _WinAPI_UrlCreateFromPath($Path)
ConsoleWrite($Path & @CR)
$Path = _WinAPI_PathCreateFromUrl($Path)
ConsoleWrite($Path & @CR)