javascript遍历文件夹
FSO对象有Drives属性,他就是你需要的,比如下面这段vbs代码,就是遍历盘符
FunctionShowDriveList
Dimfso,d,dc,s,n
Setfso=CreateObject("Scripting.FileSystemObject")
Setdc=fso.Drives
ForEachdindc
n=""
s=s&d.DriveLetter&"-"
Ifd.DriveType=3Then
n=d.ShareName
下载地址
用户评论