"!DOCTYPE html>

UDF > WinAPIEx > ShellPath >


_WinAPI_PathAddBackslash

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 )

Param�tre

$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�.

Valeur de retour

Succ�s: Retourne le chemin qui en r�sulte.
�chec: D�finit @error <> 0.

Voir aussi

Consultez PathAddBackslash dans la librairie MSDN.

Exemple

#include <WinAPIShPath.au3>

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

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