Results 1 to 3 of 3

Thread: FTP and Inet control, multiple files same dir

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Pennsylvania
    Posts
    11
    Anyone know how you can send multiple files of which you do not know the names via FTP using the Inet control? I checked the articles here and Planet Source Code, also checked MSDN, mPUT is not supported in Inet control. Basically I have tried:

    Inet1.Execute , "PUT c:\templogs\ *.*"

    and

    Inet1.Execute , "PUT c:\templogs\*.* *.*"

    and

    Inet1.Execute , "PUT c:\templogs\*.log *.*"

    None seem to work, everything else works just dandy.

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123
    Put your file example ListBox and get here file what you want to send.

    Something like this:

    Dim SendFile as String
    Dim Count as Integer

    Count = List1.ListCount

    SendFile = List1.Text

    Do

    Inet1.Execute , "PUT " & SendFile & " " & SendFile
    Do
    DoEvents
    Loop While Inet1.StillExecuting

    Loop Until Count < 0


    Or look here:
    http://www.vbsquare.com/internet/inet1
    http://www.vbsquare.com/internet/inet2
    http://www.vbsquare.com/internet/inet3

    -Dj4

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Pennsylvania
    Posts
    11
    Let me clarify, I won't know what the names of certain log files since they change daily. Will I be able to assign them to a variable as in your example? (p.s. I already read the Inet articles, they cannot answer this question).

    I also tried your code, I cannot get it to transmit anything at all now. I tried adding an item to the list box (the path to the log file) I also tried assigning the path of the log file to a variable and adding it to the list box...am I not getting your example?

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