Results 1 to 6 of 6

Thread: Uploading a file to a ftp site????

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    Uploading a file to a ftp site????

    Hi!

    Is there any way to connect to a ftp site and login and after that upload a file from my local disc to the ftp site???

    Some useful code would be great.....

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

  2. #2
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Use the inet control!!

    Let you upload, download whatever to and from a ftp site.

    www.planet-source-code.com has some good examples!

    good luck
    b

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    ....

    Ok, going to look in to it.

    Do you all think using the inet contol is the best way???

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

  4. #4
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Lightbulb

    Code:
    Screen.MousePointer = vbHourglass 
    
    Inet1.URL = "ftp://ftp.myhost.com" 
    Inet1.UserName = "myuser" 
    Inet1.Password = "mypass" 
    Inet1.Protocol = icFTP 
    Inet1.Execute Inet1.URL, "put c:\myfile.txt /myfolder/myfile.txt" 
    
    Do While Inet1.StillExecuting 
    DoEvents 
    Loop 
    
    Screen.MousePointer = vbDefault

  5. #5
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    You could use the API!

    But i dont know it PM Mathew Gates he'll probably know it.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    thanks...

    Hi!

    Thanks for the help all. Going to try using the inet control.

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

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