如何在Delphi中获取文件的创建/最后修改日期? [英] How to get create/last modified dates of a file in Delphi?

查看:104
本文介绍了如何在Delphi中获取文件的创建/最后修改日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想把这些属性的文件作为整数值。

I want to get a files these attributes as integer values.

推荐答案

Delphians倾向于喜欢FindFirst方法(SearchRec结构中有一些),但是我建议使用Win32 API函数GetFileAttributesEx。

Delphians tend to like the FindFirst approach (the SearchRec structure has some of those), but I'd suggest the Win32 API function GetFileAttributesEx.

这篇关于如何在Delphi中获取文件的创建/最后修改日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆