Dim shl
Dim fd
Set shl = CreateObject("shell.application")
Set fd = shl.Namespace("ftp://user:[email protected]")
For Each fl In fd.Items
If fl.Name = "index.xml" Then
   MsgBox "ok"
   Exit Sub
   End If
 Next
 MsgBox "no"