pb 如何获取指定路径下所有文件的文件名(含子文件夹内的文件)
展开全部
用dropdownlistbox的dirlist函数
long ll_count,ll_row
string ls_file,is_file[],is_folder[]
ddlb_1.dirList("D:\tonny");
ll_count= ddlb_1.totalitems()
for ll_row=1 to ll_count
ls_file =ddlb_1.getitem(ll_row)
if isdirectory(ls_file) then
is_folder[upperbound(is_folder)+1]=ls_file
else
is_file[upperbound(is_file)+1]=ls_file
end if
end for
long ll_count,ll_row
string ls_file,is_file[],is_folder[]
ddlb_1.dirList("D:\tonny");
ll_count= ddlb_1.totalitems()
for ll_row=1 to ll_count
ls_file =ddlb_1.getitem(ll_row)
if isdirectory(ls_file) then
is_folder[upperbound(is_folder)+1]=ls_file
else
is_file[upperbound(is_file)+1]=ls_file
end if
end for
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询