Why don't you use the West Wind IP Tools, it has all this functions implemented. It's very simple to work with and you can do almost everything with it. It can be found on
I'll look into that, thanks. I didn't think it was worth finding a tool initially because all I'm doing is grabbing 3 files and everything works fine, I was just wondering if there was any error checking built into foxpro to check for a successful connection as VB has. I know there's an FERROR() function, but that doesn't serve any good with a script as far as I can see.
DO NOT USE FCREATE()!!! Don't use the command line ftp!!! In production environment this doesn't work!!!
I've developed an offline e-order app in VFP70. In my prior versions I used fcreate() on WinNT 4.0 which proved tyo be catastrophical. The only solution I've reached (after 3 years in this matter) was a Red Hat Linux dial-in server (for a better filesystem handling- this is very important) and an simple ActiveX controller which does the ftpopen, ftpget and ftpput. The ActiveX controller was developed in VisualC 6.0 by friend of mine. It took him about 6 hours with testing included, so if you can handle C++ or you have a friend that does try this solution. It was a critical bussiness solution for us. Now it's working for over 1 year with no interventions.
I hope this can help!
Ok, I'll add a platform note. I'll agree with the statement about using command line ftp, I avoid the RUN or ! command unless I absolutelay have to. The example in the link I provided has been working flawlessly on NT 4, and 2000 professional.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.