UDF > WinAPIEx > ShellPath >


_WinAPI_PathCompactPathEx

Tronque un chemin pour tenir dans un certain nombre de caract�res en rempla�ant des composants du chemin par trois points

#include <WinAPIShPath.au3>
_WinAPI_PathCompactPathEx ( $sFilePath, $iMax )

Param�tres

$sFilePath Le chemin � modifier.
$iMax Le nombre maximum de caract�res dans lequel le chemin doit tenir.

Valeur de retour

Succ�s: Retourne le chemin modifi�.
�chec: Retourne le param�tre d'origine $sFilePath et d�finit @error <> 0.

Voir aussi

Consultez PathCompactPathEx dans la librairie MSDN.

Exemple

#include <WinAPIShPath.au3>

Local $sPath = @ScriptFullPath

ConsoleWrite('Avant: ' & $sPath & @CRLF)
ConsoleWrite('Apr�s: ' & _WinAPI_PathCompactPathEx($sPath, 40) & @CRLF)