Results 1 to 7 of 7

Thread: Upload quetsion (easy)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Sweden
    Posts
    84

    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!
    / VVT

  2. #2
    Yash_Kumar
    Guest
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Sweden
    Posts
    84
    What API can I use to din out folders and files in a special folder?
    / VVT

  4. #4
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    do u know the path to the folder?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Sweden
    Posts
    84
    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!
    / VVT

  6. #6
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909
    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:
    1. With Inet1
    2.     .Protocol = icFTP
    3.     .URL = "ftp://mysite.com"
    4.     .UserName = "UserName"
    5.     .Password = "PassWord"
    6.     .Execute , "Put " & File1.Path & "\" & File1.FileName & " " & File1.FileName
    7. End With

    something like this.

    wait to loop until not inet1.stillexecuting


  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Sweden
    Posts
    84
    Thanks. More ideas?
    / VVT

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