获取FoxPro目录中的文件列表 [英] Get list Of Files in a Directory in Foxpro

查看:195
本文介绍了获取FoxPro目录中的文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在foxpro中以程序方式获取目录中的文件列表?

How can i get list of files in a directory programatically in foxpro?

推荐答案

ADIR() - 创建数组基于使用任何通配符的目录...

ADIR() -- create an array based on a directory using whatever wildcard...

local array MyFiles[1,5]
nFilesFound = ADIR( MyFiles, "C:\Somepath\*.dbf" )

for i = 1 to nFilesFound
   ? "Name Of File: ", MyFiles[ i, 1]
   ? "Size: ", MyFiles[ i, 2]
   */ i,3 = date... i,4 = time,  i,5 = attributes
endfor

这篇关于获取FoxPro目录中的文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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