1
2
3
4
5
6 function searchFiles(){
7 var fso = new ActiveXObject("Scripting.FileSystemObject");
8 var f = fso.GetFolder(document.all.fixfolder.value);
9 var fc = new Enumerator(f.files);
10 var s = "";
11 for (; !fc.atEnd(); fc.moveNext())
12 {
13 s += fc.item();
14 s += "";
15 }
16 fk = new Enumerator(f.SubFolders);
17 for (; !fk.atEnd(); fk.moveNext())
18 {
19 s += fk.item();
20 s += "";
21 }
22
23 textarea.innerHTML = s
24 }
25
26
27
28 指定文件夹:
29
30
31
32
33
34
35
36
37
38
39
- 3 回答
- 0 关注
- 443 浏览
添加回答
举报
0/150
提交
取消