请问如何取得某个目录下的文件名!!!

tramplai 2003-04-13 05:20:25
请问如何取得某个目录下的文件名!!!来者有分
...全文
50 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
tramplai 2003-04-13
  • 打赏
  • 举报
回复
有这方面的PBL吗?
madking 2003-04-13
  • 打赏
  • 举报
回复
结构finddata的定义如下
$PBExportHeader$finddata.srs
global type finddata from structure
unsignedlong ul_fileattributes
filetime str_creationtime
filetime str_lastaccesstime
filetime str_lastwritetime
unsignedlong ul_filesizehigh
unsignedlong ul_filesizelow
unsignedlong ul_reserved0
unsignedlong ul_reserved1
character ch_filename[260]
character ch_alternatefilename[14]
end type

结构filetime的定义如下
$PBExportHeader$filetime.srs
global type filetime from structure
long dwLowDateTime
long dwHighDateTime
end type
madking 2003-04-13
  • 打赏
  • 举报
回复
用api吧

Function ulong FindFirstFileA (ref string filename, ref finddata findfiledata) library "KERNEL32.DLL"
Function ulong FindNextFileA (ulong handle, ref finddata findfiledata) library "KERNEL32.DLL"
Function boolean FindClose (ulong handle) library "KERNEL32.DLL"

1,079

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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