Ajoute une barre oblique inverse à la fin d'une chaîne pour créer la syntaxe correcte d'un chemin
#include <WinAPIShPath.au3>
_WinAPI_PathAddBackslash ( $sFilePath )
$sFilePath | Le chemin auquel la barre oblique inverse sera ajoutée. Si ce chemin a déjà une barre oblique inverse à la fin, aucune autre ne sera ajouté. |
Succès: | Retourne le chemin qui en résulte. |
Échec: | Définit @error <> 0. |
Consultez PathAddBackslash dans la librairie MSDN.
#include <WinAPIShPath.au3> Local $aPath[2] = ['C:\Documents\', 'C:\Documents'] For $i = 0 To 1 ConsoleWrite($aPath[$i] & ' => ' & _WinAPI_PathAddBackslash($aPath[$i]) & @CRLF) Next