Hi,
I am trying to get the content of a ftp-directory with the DIR-command, but every time I call it, it does not work.
I don't get any errors.
This is what i tried:


Private Sub Command1_Click()
Inet1.execute , "dir"
end sub

Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim strData As String, strNewData As String

If State = icResponseCompleted Then
Do
strNewData = Inet1.GetChunk(512, icString)
DoEvents
If Len(strData) = 0 Then Exit Do
strData = strData & strNewData
Loop
MsgBox strData
End If
End Sub


Can you tell me, what is wrong?
Thank you,
JaK