下载  >  开发技术  >  Javascript  > javascript遍历文件夹

javascript遍历文件夹 评分:

FSO对象有Drives属性,他就是你需要的,比如下面这段vbs代码,就是遍历盘符 Function ShowDriveList Dim fso, d, dc, s, n Set fso = CreateObject("Scripting.FileSystemObject") Set dc = fso.Drives For Each d in dc n = "" s = s & d.DriveLetter & " - " If d.DriveType = 3 Then n = d.ShareName

...展开详情
2012-09-05 上传 大小:914B
举报 收藏
分享