Bonjour,
Exemple à transformer en vb6 (au hasard, par Julien !!! - bonjour au passage - si il a le temps):
Option Explicit
Dim Fso, Path1, Fic1, Path2
Dim i, ObjTextStream, strtmp
Const ForReading = 1, ForWriting = 2, ForAppending=8
Path1 = "d:\huby40one\"
Path2 = "d:\huby40one\UpLoad\"
Fic1 = "Liste des fichiers a supprimer.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set ObjTextStream = Fso.OpenTextFile(Path1 & Fic1, 1)
Do While Not ObjTextStream.AtEndOfStream
strtmp = split(ObjTextStream.ReadLine, vbLf)
For i = 0 to Ubound(strtmp)
If Fso.FileExists(Path2 & strtmp(i)) Then Fso.DeleteFile Path2 & strtmp(i)
Next
Loop
ObjTextStream.Close
Set Fso = Nothing
Set ObjTextStream = Nothing
jean-marc