Function Reference


_WinAPI_PathAddBackslash

Adds a backslash to the end of a string to create the correct syntax for a path

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

Parameters

$sFilePath The path to which the backslash will be appended. If this path already has a trailing backslash,
no backslash will be added.

Return Value

Success: The resulting path.
Failure: Sets the @error flag to non-zero.

See Also

Search PathAddBackslash in MSDN Library.

Example

#include <WinAPIShPath.au3>

Local $aPath[2] = ['C:\Documents\', 'C:\Documents']

For $i = 0 To 1
    ConsoleWrite($aPath[$i] & ' => ' & _WinAPI_PathAddBackslash($aPath[$i]) & @CRLF)
Next