Function Reference


_WinAPI_PathRemoveBackslash

Removes the trailing backslash from a given path

#include <WinAPIShPath.au3>
_WinAPI_PathRemoveBackslash ( $sFilePath )

Parameters

$sFilePath The path from which to remove the backslash.

Return Value

Returns the altered path.

See Also

Search PathRemoveBackslash in MSDN Library.

Example

#include <WinAPIShPath.au3>

Local $sPath = 'C:\Documents\'

ConsoleWrite('Before: ' & $sPath & @CRLF)
ConsoleWrite('After : ' & _WinAPI_PathRemoveBackslash($sPath) & @CRLF)