Removes the trailing backslash from a given path
#include <WinAPIShPath.au3>
_WinAPI_PathRemoveBackslash ( $sFilePath )
$sFilePath | The path from which to remove the backslash. |
Search PathRemoveBackslash in MSDN Library.
#include <WinAPIShPath.au3>
Local $sPath = 'C:\Documents\'
ConsoleWrite('Before: ' & $sPath & @CRLF)
ConsoleWrite('After : ' & _WinAPI_PathRemoveBackslash($sPath) & @CRLF)