Results 1 to 7 of 7

Thread: FTP uploading

  1. #1
    chenko
    Guest
    i want to be able to upload a page automatically from a file created by VB, which control should i use? does anyone have any exampke code?

    Regards
    ~Chenko

  2. #2
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    Inet control is the only one I can recommend (if there are any other method, esp API, please let me know!!!!)

    See the tutorial on VB Square

    http://www.vbsquare.com/articles/inet1/

    It is targetted toward web, but same principles for FTP

  3. #3
    Guest
    i was really looking for some simple code to upload to my site, i dont want directory listings, does anyone have an example code/project i can look at?

    Simon

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    put an INET control on your form

    Code:
    With Inet1
        .Protocol = icFTP
        .URL = "ftp.bizland.com"
        .UserName = "UserName"
        .Password = "PassWord"
        .Execute , "Put C:\YourFile.html Renamed.html"
    End With
    Renamed.html iz the file name you want it to be when it'z uploaded!
    ftp.bizland.com iz just an example, but you can use any other ftp server. And if you decided to use an http upload method then I sugest you change the protocal to icHTTP
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  5. #5
    Guest
    tried and it runs with no errors but there is no file on my server??? i tried both HTTP and FTP protocol and they dont... wat coud be the Problem?

  6. #6
    Lively Member
    Join Date
    May 2001
    Location
    A pub that sells Kronenburg
    Posts
    116
    i have exactly the same problem with both ftp and http

  7. #7
    New Member
    Join Date
    Jan 2002
    Posts
    3

    Lightbulb

    Try the Catalyst SocketWrench package, available at http://www.catalyst.com/. SocketWrench is a free (free for comercial use, too!) ActiveX control that will allow you to open TCP/IP conections of any type. They document the package very well, and give you 9 sample projects including FTP and HTTP access. Very easy to use, and fairly reliable.
    Hope this helps.

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