filename=dir("盘符:*.*")
i = 0
do while filename = ""
array1 (i)=filename
i = i + 1
filename = dir("c:*.*")
loop
vb好象也有比较好的方法,但是我不太清楚了
vbscript
set fs = createobject("scripting.filesystemobject")
set f = fs.getfolder("盘符:")
set fc = f.files
i = 0
for each f1 in fc
array1(i)=f1.name
i=i+1
next
申明:本教程内容由威凡网编辑整理并提供IT程序员分享学习,如文中有侵权行为,请与站长联系(QQ:254677821)!