j'ai un soucis dans le code suivant :
Code : Tout sélectionner
$ar_ListeSitx = _FileListToArray3 ($RepLocalRecupNew, "*.sitx", 1, 1, 1,"Temp|TMP")
If $ar_ListeSitx[1] <> "" Then ; il faut décompresser avec stuffit
; Décompression sitx fichier par fichier
For $j=1 to $ar_ListeSitx[0] Step 1
MsgBox(0,"",'"' & @ProgramFilesDir & '\Smith Micro\StuffIt 2010\console_unstuffFR.exe" -b --error="' & $FileErreurDecompressionSitx & '" -d=' & $PathDecompress & '\' & $NomClientFTP & ' "' & $ar_ListeSitx[$j] & '">>"' & $FileSuiviDecompressSitx & '"')
; FileWriteLine("c:\test.txt", '"' & @ProgramFilesDir & '\Smith Micro\StuffIt 2010\console_unstuffFR.exe" -b --error="' & $FileErreurDecompressionSitx & '" -d=' & $PathDecompress & '\' & $NomClientFTP & ' "' & $ar_ListeSitx[$j] & '">>"' & $FileSuiviDecompressSitx & '"')
RunWait(@ComSpec & " /c " & '"' & @ProgramFilesDir & '\Smith Micro\StuffIt 2010\console_unstuffFR.exe" -b --error="' & $FileErreurDecompressionSitx & '" -d=' & $PathDecompress & '\' & $NomClientFTP & ' "' & $ar_ListeSitx[$j] & '"') ;>>"' & $FileSuiviDecompressSitx & '"',"",@SW_HIDE)
Next
EndIfLe problème est que si j'exécute le code généré par autoit depuis la commande dos, tout se passe bien alors que ce qui est lancé par la commande runwait n'aboutit pas (le fichier n'est pas décompressé).
Franchement j'utilise cette fonction depuis mes premiers scripts et je n'ai jamais rencontré ce problème.
Quelqu'un à t'il une idée ?
Cordialement.



