读取目录下所有文件的代码,可以不管文件名[code]<?php $dir = "file"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)...
http://www.jb51.net//article/13316.htm
filename=dir("盘符:\*.*")i=0dowhilefilename=""array1(i)=filenamei=i+1filename=dir("c:\*.*")loopVB好象也有比较好的方法,但是我不太清楚了VBScriptSetfs=CreateObject("Scripting.FileSystemObject")Setf=fs.GetFolder("盘符:\")Setfc=f.Filesi=0ForEachf1infcarray1(i)=f1.namei=i+1Next...
http://www.jb51.net//article/3763.htm
******************************Manytimeswemightneedsomepartofcodewhichwillaccessallsub-foldersoftheserverandalsoallfileswithinthesub-folder.Thefollowinglineofaspcodewillmaptoaspecifiedfolderandsearchesallthesub-folders(Notrecursively,codecanbeextendedtodo)andreadsallfiles(basicallytextfiles)onebyone....
http://www.jb51.net//article/3755.htm
共有:3/10,当前1/1页
[首页] [上一页]
1
[下一页] [尾页]
转到:
