Hi!
How can I upload a whole folder to my ftp server?
(I don't know which files are in the folder)
Thanks!
Printable View
Hi!
How can I upload a whole folder to my ftp server?
(I don't know which files are in the folder)
Thanks!
U need to know the files. You could use an API to find out the files in that folder. Once u know, u can use the INET control to upload them one by one to that folder.
What API can I use to din out folders and files in a special folder?
do u know the path to the folder?
It's very simple really, I just want to upload all files and folders in the folder c:\Myuploads to a folder called files on my server. How do I get an API for this?
Thanks!
well have a file listbox with the path set to C:\myuploads\ and then loop through the list sending the files using inet.
send like this
VB Code:
With Inet1 .Protocol = icFTP .URL = "ftp://mysite.com" .UserName = "UserName" .Password = "PassWord" .Execute , "Put " & File1.Path & "\" & File1.FileName & " " & File1.FileName End With
something like this.
wait to loop until not inet1.stillexecuting
:D
Thanks. More ideas?