|
-
Jan 20th, 2002, 04:27 AM
#1
Thread Starter
Lively Member
Upload quetsion (easy)
Hi!
How can I upload a whole folder to my ftp server?
(I don't know which files are in the folder)
Thanks!
-
Jan 20th, 2002, 10:40 AM
#2
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.
-
Jan 22nd, 2002, 03:14 PM
#3
Thread Starter
Lively Member
What API can I use to din out folders and files in a special folder?
-
Jan 22nd, 2002, 03:54 PM
#4
Fanatic Member
do u know the path to the folder?
-
Jan 23rd, 2002, 12:53 PM
#5
Thread Starter
Lively Member
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!
-
Jan 23rd, 2002, 02:34 PM
#6
Fanatic Member
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
-
Jan 24th, 2002, 12:48 PM
#7
Thread Starter
Lively Member
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
|