Fügt einen Backslash am Ende eines Strings hinzu, um die korrekte Syntax für einen Pfad zu erstellen
#include <WinAPIShPath.au3>
_WinAPI_PathAddBackslash ( $sFilePath )
| $sFilePath | Der Pfad, an den der Backslash angehängt wird. Wenn dieser Pfad bereits einen nachgestellten Backslash aufweist, wird kein Backslash hinzugefügt. |
| Erfolg: | Der neue Pfad. |
| Fehler: | Setzt das @error Flag auf ungleich 0. |
Suche nach PathAddBackslash in der MSDN Bibliothek.
#include <WinAPIShPath.au3>
Local $aPath[2] = ['C:\Documents\', 'C:\Documents']
For $i = 0 To 1
ConsoleWrite($aPath[$i] & ' => ' & _WinAPI_PathAddBackslash($aPath[$i]) & @CRLF)
Next