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 )
$sFilePath | Le chemin � modifier. |
$iMax | Le nombre maximum de caract�res dans lequel le chemin doit tenir. |
Succ�s: | Retourne le chemin modifi�. |
�chec: | Retourne le param�tre d'origine $sFilePath et d�finit @error <> 0. |
Consultez PathCompactPathEx dans la librairie MSDN.
#include <WinAPIShPath.au3> Local $sPath = @ScriptFullPath ConsoleWrite('Avant: ' & $sPath & @CRLF) ConsoleWrite('Apr�s: ' & _WinAPI_PathCompactPathEx($sPath, 40) & @CRLF)