|
-
Nov 13th, 2000, 10:14 AM
#1
Thread Starter
New Member
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.
-
Nov 14th, 2000, 01:06 AM
#2
Lively Member
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
-
Nov 14th, 2000, 02:07 PM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|