如何得到某个文件的属性信息?

pterdragon 2003-10-17 11:10:27
比如 大小、建立日期
...全文
82 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zoohoo 2003-10-17
  • 打赏
  • 举报
回复
windows api

Get status information on a file.
int _stat( const char *path, struct _stat *buffer );

佣工7001 2003-10-17
  • 打赏
  • 举报
回复
api
GetFileAttributesEx
yjy1001 2003-10-17
  • 打赏
  • 举报
回复
同意 dajianshi(拔剑四顾心茫然) ;

[New - Windows NT]

BOOL GetFileAttributesEx(

LPCTSTR lpFileName, // pointer to string that specifies a file or directory
GET_FILEEX_INFO_LEVELS fInfoLevelId, // value that specifies the type of attribute information to obtain

LPVOID lpFileInformation // pointer to buffer to receive attribute information
);

13,822

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧