Appends one path to the end of another.
#Include <WinAPIEx.au3>
_WinAPI_PathAppend ( $sPath, $sMore )
$sPath | The string to which the path is appended. |
$sMore | The path to be appended. |
Success | The resulting path string. |
Failure | Empty string and sets the @error flag to non-zero. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Path1 = 'C:\Documents\Text'
Global $Path2 = '..\Test.txt'
ConsoleWrite('Path1 : ' & $Path1 & @CR)
ConsoleWrite('Path2 : ' & $Path2 & @CR)
ConsoleWrite('Result: ' & _WinAPI_PathAppend($Path1, $Path2) & @CR)