Hello,
I will need your help.
I am using the following code to check if a file exists in an ftp directory.
If i make the check in a local directory the code is working.
Can you help me please?
Thank you in advance.
Dimitris
I will need your help.
I am using the following code to check if a file exists in an ftp directory.
If i make the check in a local directory the code is working.
Code:
Sub DirFile()
Dim fso As New Scripting.FileSystemObject
Dim sFile As String
ConnectionFtp 'make login in an ActiveX Microsoft Web Browser to the ftp directory
sFile = ftpWB.LocationURL & "img171615386.jpg"
If fso.FileExists(sFile) Then
'If Dir(sFile) Then also it's not working and with the method dir
MsgBox "the file exists"
End If
End Sub
Can you help me please?
Thank you in advance.
Dimitris