Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

vb6 subroutine to ftp a file?

hello,
I have a file
BLURG.txt
in a subdirectory
D:\B HC\NewB
that I'd like to, using a VB6 subroutine, pass as a variable to the subroutine
the name of the file & directory where it can be found (for this ex., D:\B HC\NewB\BLURG.txt),
then the subroutine will connect to a FTP site,
ftp://192.782.32.1
using a username of
bob
and a password of
smith
then go to the
/u/gnits/tfiles/
subdirectory on the ftp site and upload the above .txt file using ASCII mode.

I've tried googling how to FTP through VB6 but all the webpages I found were somewhat "over my head" for me, a relative VB newbie, and didn't have any to-the-point examples that I could modify and use, so I was hoping someone could share with me the subroutine code that could do the above?
thanks in advance!
david
[876 byte] By [dgr7] at [2007-11-11 10:11:30]
# 1 Re: vb6 subroutine to ftp a file?
It is a bit more complicated than just a single routine, but you are in luck there is an FTP class available on the FreeVBCode source libarary. Here is the link:
http://www.freevbcode.com/ShowCode.Asp?ID=1593
Ron Weller at 2007-11-11 17:22:59 >
# 2 Re: vb6 subroutine to ftp a file?
thank you! I'll try that code out...
dgr7 at 2007-11-11 17:24:00 >