Home > Back-end >  IdFTP. List methods can be used in some of the grid, some network error, what reason?
IdFTP. List methods can be used in some of the grid, some network error, what reason?

Time:09-18

I wrote a download video files from the FTP server to the local broadcast program, in my company's network debugging good, went to the customer's network environment (WIFI) will not be able to download, tracking the discovery is IdFTP1 List (TS); Error, the error message below
Command not understood.
But in the Windows file manager is to open the FTP server, you can see the file, also can put the files manually kao,

Then I changed my cell phone 4 g hotspot WIFI, computer even go up and then you can download, and in the customer's cable network is also available for download, is the customer not WIFI, customer also say not clear, the network administrator is did set somewhere in the network, which know what reason is this?

Is Delphi7 development environment, standard Indy control, never done updates, Jane after generation code sample is as follows:
Procedure TForm1. Button1Click (Sender: TObject);
Var
TS: TStrings;
The begin
IdFTP1. Host:='122.231.166.106';
IdFTP1. Port:=21;
IdFTP1. Username:='sp;
IdFTP1. Password:=' ';
IdFTP1. Connect; Can connect
IdFTP1. ChangeDir (" sp "); Can also change directory
TS:=TStringList. Create;
IdFTP1. List (TS); An error command not understood.
Memo1. Lines. Assign (TS);
TS. Free;
end;

CodePudding user response:

It is ok to use ics for, compatibility issues, also met, didn't delve into

CodePudding user response:

Try idFTP1. List (TS, ' ', true);

CodePudding user response:

refer to the second floor DelphiGuy response:
try idFTP1. List (TS, ", true);


CodePudding user response:

Capture the abnormal

CodePudding user response:

ICS is what?
IdFTP1. List (TS, ' ', true); Estimated also not line, because after two parameters default is such
Later I use XE8 to edit program, customer tests and said ok, should be a low version of the control code has a BUG
  • Related