Malheureusement la fonction « _INetGetSource » ne permet pas à la fonction « IniRead » de répondre à « msgbox(0," retour ", $v1 & $v2 & $v3 & $v4 & $v5 & $v6& $v7) » par contre « MsgBox(0, "Fichier:", $file) » répond très bien .
Quoi faire pour que msgbox(0," retour ", $v1 & $v2 & $v3 & $v4 & $v5 & $v6& $v7) » soit lui aussi fonctionnel.
Code : Tout sélectionner
#include <GUIConstantsEx.au3>
#Include <Inet.au3>
Local $sSource, $sUrl,$file,$fichier
global $v1,$v2,$v3,$v4,$v5,$v6
$search = "http://XXX.com/GestionCients/BoxInfoClients/fichier.ini"
$file = _INetGetSource($search)
MsgBox(0, "Fichier:", $file)
INIINFO($fichier)
msgbox(0," retour ", $v1 & $v2 & $v3 & $v4 & $v5 & $v6 $v7)
FUNC INIINFO($fichier)
$v1 = IniRead($fichier, "parametres", " Nom ", "NotFound")
$v2 = IniRead($fichier, "parametres", " Préom ", "NotFound")
$v3 = IniRead($fichier, "parametres", "Taille du média", "NotFound")
$v4 = IniRead($fichier, "parametres", " Mot de Passe ", "NotFound")
$v5 = IniRead($fichier, "parametres", " Indicatif ", "NotFound")
$v6 = IniRead($fichier, "parametres", " Pays/Région ", "NotFound")
$v7 = IniRead($fichier, "parametres", " Ville ", "NotFound")
EndFunc
;***************
;Fichier.ini
;[parametres]
;Nom=MESONAVE
;Préom=Bruno
;Mot de Passe=123
;Indicatif= 333
;Téléphone/Mobile=1234567890
;Pays/Région=FRANCE
;Ville=Paris



