I downloaded a Class called FTP Service Class (written by Robert Abraham) from this forum.
I don't know if there is anyone here who has worked with this.
I just cannot get to first base with this class. Everything I try results in error messages that come from inside the class code.
The Wininet.dll is available and I have copied it into my default directory to help out. I also have the ftp.prg inside the default directory.
Some of my test code below. Each line starting from SZFTP.AUTODIALINTERNET(1) onward causes error messages.
If anyone here has actually used this class, I would appreciate your comments as to does it actually work and how could I adjust my code below to make it work.
Mike Smith
*******************
SET ESCAPE ON
SET PROCEDURE TO FTP.PRG ADDITIVE
SZFTP = CREATEOBJECT('ftp_service')
SZFTP.AUTODIALINTERNET(1)
SZFTP.OPENINTERNET("
b1ztxk88@sympatico.ca", "MDSMITH1", "
http://www.sympatico.com", "21")
SZFTP.GOONLINE('ftp.west-wind.com')
SZFTP.GETFTPFILE('ftp.west-wind.com/updates/wwreader.xml', 'C:\TEMPRENT\WWREADER.XML', .F.)
SZFTP.AUTODIALHANGUP()