× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Delph FTP
  • From: Brian Lawson <blawson@xxxxxxxxxxxxx>
  • Date: Mon, 18 Aug 1997 23:19:29 -0400

Hi:

I assume that you are using Delphi 3 and one of their Internet components.

I was having trouble using the Delphi 3 FTP component. This was actually written by NetManage and distributed for a time by Microsoft and now by Borland. When I run the Borland sample code it seems to fail after a connect also. I think that the problem may be the return codes given by the AS/400. However, I also had problems with the events being triggered with the other Netmanage components so maybe it is a more general problem.

What I did to get around this was to write the FTP as a script and have my Delphi program run it via the following Delphi code:

ExecuteFile('RUNFTP.BAT' , LogFile.LOG, 'C:\STARTUP', 0);

My RUNFTP.BAT contains the following code:

ftp -s:RunFTP -i -n -v -d >%1

My FTP script file contains:

open 0.0.0.0
user USERNAME
PASSWORD
binary
cd /qdls/inbound
lcd d:\outbound
mput *.*
! del *.* <c:\yes
cd /qdls/outbound
lcd d:\inbound
mget *.*
mdelete *.*
bye

This script transfers all of the files out of a shared folder to a directory on the PC and then deletes the files out of the shared folder. You could have the Delphi program write out the script and then read the contents of the .LOG file

Microsoft seems to have changed their components for FTP in Visual Basic 5 but I have not yet tried them.

I know that it is supposed to work nicer than this but sometimes I stop fighting when I don't know if it's me or the machine that is screwing up.

HTH.

Regards,
Brian


At 08:51 PM 8/17/97 -0700, you wrote:
>Is anyone out there doing anything with Delphi and FTP to the AS/400. We
>are having some problems writing a module that connects to the 400 and
>puts a file. SHould this work OK into QSYS any examples would be
>appreciated we dont seem to be getting the correct messages back as you
>would do with DOS. Is this Delphi working with the AS/400's QSYS file
>structure?
>
>Thanks Bleddyn
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>* This is the Midrange System Mailing List! To submit a new message, *
>* send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from *
>* this list send email to MAJORDOMO@midrange.com and specify *
>* 'unsubscribe MIDRANGE-L' in the body of your message. Questions *
>* should be directed to the list owner / operator: david@midrange.com *
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.