Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP Service Class
Message
From
02/04/2002 21:24:06
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
FTP Service Class
Miscellaneous
Thread ID:
00640200
Message ID:
00640200
Views:
126
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()
Next
Reply
Map
View

Click here to load this message in the networking platform