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