函数参考


_WinAPI_UrlCreateFromPath

将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.

注意/说明

None

相关

详情参考

在MSDN中搜索


示例/演示


#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $Path = @ScriptFullPath

$Path = _WinAPI_UrlCreateFromPath($Path)
ConsoleWrite($Path & @CR)

$Path = _WinAPI_PathCreateFromUrl($Path)
ConsoleWrite($Path & @CR)