J
janlon
Unregistered / Unconfirmed
GUEST, unregistred user!
这段代码怎么无法将远程文件夹下面的文件列出来啊?(本地的可以)
procedure TForm1.Button1Click(Sender: TObject);
var
iFindResult: integer;
SearchRec: TSearchRec;
begin
iFindResult := FindFirst('http://www.ccarol.com/download/*.*', faAnyFile, SearchRec);
while iFindResult = 0 do
begin
ListBox1.Items.Add(SearchRec.Name);
iFindResult := FindNext(SearchRec);
end;
FindClose(SearchRec);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
iFindResult: integer;
SearchRec: TSearchRec;
begin
iFindResult := FindFirst('http://www.ccarol.com/download/*.*', faAnyFile, SearchRec);
while iFindResult = 0 do
begin
ListBox1.Items.Add(SearchRec.Name);
iFindResult := FindNext(SearchRec);
end;
FindClose(SearchRec);
end;