CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Need a simple FTP upload program

    I need some code I can drop into an existing program that will upload a file to a FTP server. I dont need an interface,it will just run in the backround. The FTP site/password is constant so no need for the user to input it.

    Even better would be a way to simply add onto a file in a FTP dir. (just a basic Text file, this is for a utility that posts info about a server to a central text file)

    Any help would be greatly appreciated

    Thanks
    Lee S
    [email protected]



  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Need a simple FTP upload program

    Take a look at :

    http://codeguru.developer.com/vb/articles/1852.shtml

    - this contains a class module that you can drop into your VB program and then just call a couple of methods to upload / download files at will.

    >Even better would be a way to simply add onto a file in a FTP dir. (just
    >a basic Text file, this is for a utility that posts info about a server
    >to a central text file)

    You won't have any luck with that unfortunately (at least, not using the standard FTP protocol), I had to do exactly the same thing at the time I originally wrote the FTP class. In the end I just downloaded the file, wrote the changes to it, then uploaded it again.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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

Featured