Jul 17th, 2000, 01:55 PM
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"
Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim strData As String, strNewData As String
If State = icResponseCompleted Then
strNewData = Inet1.GetChunk(512, icString)
If Len(strData) = 0 Then Exit Do
strData = strData & strNewData
Can you tell me, what is wrong?
Jul 17th, 2000, 04:50 PM
Actually your statement is wrong. Just try this syntax and hopefully it will answer your questions. Good luck!
Inet1.Execute txtURL.Text, "DIR FindThis.txt"
Jul 18th, 2000, 01:47 AM
Jul 18th, 2000, 09:03 AM
Correct me if I'm wrong but I think you need to specify the URL.