Re: [fpc-pascal] Getting strange FTP error using Indy 10 idFTP

2017-11-23 Thread Bo Berglund
On Thu, 23 Nov 2017 10:13:14 +0100, Bo Berglund wrote: >On Thu, 23 Nov 2017 00:09:36 +0100, Bo Berglund > wrote: > >>I need to get a list of the files that match a specific format like: >>_.zip >>I could of course traverse the supplied TStrings and

Re: [fpc-pascal] Getting strange FTP error using Indy 10 idFTP

2017-11-23 Thread Bo Berglund
On Thu, 23 Nov 2017 00:09:36 +0100, Bo Berglund wrote: >I need to get a list of the files that match a specific format like: >_.zip >I could of course traverse the supplied TStrings and look at the first >char (discard all d entries) and check if the last part is .zip.

Re: [fpc-pascal] Getting strange FTP error using Indy 10 idFTP

2017-11-22 Thread Bo Berglund
On Wed, 22 Nov 2017 14:11:08 -0600, Zoë Peterson wrote: >On 11/22/2017 1:50 PM, Bo Berglund wrote: >> 20:14:01.018 EXCEPTION: Invalid PORT Command. > >Set FTP.Passive := True. PORT is used for active connections, where the >server opens a connection to the client

Re: [fpc-pascal] Getting strange FTP error using Indy 10 idFTP

2017-11-22 Thread Zoë Peterson
On 11/22/2017 1:50 PM, Bo Berglund wrote: 20:14:01.018 EXCEPTION: Invalid PORT Command. Set FTP.Passive := True. PORT is used for active connections, where the server opens a connection to the client computer for the data stream. PASV is used for passive connections, where the client opens

[fpc-pascal] Getting strange FTP error using Indy 10 idFTP

2017-11-22 Thread Bo Berglund
I am writing a simple Delphi7/FPC compatible console application in order to use in a daily task to transfer a backup zipfile from a server to my Windows 7 laptop. The task is a bat script that does a lot of other stuff as well as the FTP and it has been a struggle setting ftp up for batch file