Click to See Complete Forum and Search --> : Need a simple FTP upload program


February 28th, 2000, 10:11 AM
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
lee-s@sympatico.ca

Chris Eastwood
February 28th, 2000, 10:33 AM
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