Results 1 to 4 of 4

Thread: Inet Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    1

    Unhappy

    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

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Location
    USA
    Posts
    16
    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"

  3. #3

  4. #4
    Junior Member
    Join Date
    Jul 2000
    Location
    USA
    Posts
    16
    Correct me if I'm wrong but I think you need to specify the URL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width