Removes the trailing backslash from a given path.
#Include <WinAPIEx.au3>
_WinAPI_PathRemoveBackslash ( $sPath )
$sPath | The path from which to remove the backslash. |
Success | The altered path. |
Failure | Empty string and sets the @error flag to non-zero. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Path = 'C:\Documents\'
ConsoleWrite('Before: ' & $Path & @CR)
ConsoleWrite('After : ' & _WinAPI_PathRemoveBackslash($Path) & @CR)