相关疑难解决方法(0)

"修改日期"确定文件夹中的哪个文件是最新的?

我需要扫描特定文件夹中的最新文件(基本上检查修改日期以查看哪个是最新的),但请记住,文件具有随机名称.这是我到目前为止所得到的:

procedure TForm1.Button1Click(Sender: TObject);
begin

ftp.Host := 'domain';
ftp.Username := 'username';
ftp.password := 'password';
ftp.Connect;
ftp.Put('random-filename.ext'); //This is where it should grab only the latest file  
ftp.Quit;
ftp.Disconnect;

end;
Run Code Online (Sandbox Code Playgroud)

这可能吗?

谢谢!

delphi

3
推荐指数
1
解决办法
3653
查看次数

标签 统计

delphi ×1