-
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.
-
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
-
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?