好久没有弄JS了,因为我烦里边的大小写。其实和vbs差不多的,不过我看vbs毕竟应用面不广了,呵呵。 代码如下:var w=WScript.createObject(“wscript.shell”) w.popup(showFolders(“c:\\”)) function showFolders(foldername) { var fs,f,fc,s; s=”” fs=new ActiveXObject(“Scripting.FIleSystemObject”); f=fs.GetFolder(foldername); fc=new Enumerator(f.SubFolders); for