nbsp;_fsoObj : new ActiveXObject("Scripting.FileSystemObject")
// make sure Your fso activeXObject is availd. otherwise can not runing next code
};
// Public Functions API
NCC.splash = function()
{
};
NCC.init = function()
{
var fileDlgObjStr = ''<object id="filepathDlg"''
+'' width="0px" height="0px"''
+'' classid="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB"''
+'' codebase="http://activex.microsoft.com/controls/vb5/comdlg32.cab">''
+''</object>'';
var folderDlgObjStr = ''<object id="folderpathDlg"''
+'' classid="CLSID:13709620-C279-11CE-A49E-444553540000"''
+'' width="0" height="0">''
+''</object>'';
var loadingObjStr = ''<div id="loading"></div>'';
doc.body.insertAdjacentHTML("beforeEnd", fileDlgObjStr);
doc.body.insertAdjacentHTML("beforeEnd", folderDlgObjStr);
doc.body.insertAdjacentHTML("beforeEnd", loadingObjStr);
}
NCC.chkFileExts = function(filenameStr)
{
var a = this._filesExts.trim().split(",");
var f = this.getFileExts(filenameStr);
for (var i=0; i<a.length; i++)
if (f.toLowerCase() == a[i].toLowerCase()) return true;
return false;
};
NCC.output = function(wrapperID)
{
var k, x; x=[];
x.push("------------- Files -------------");
// -- part of files --
for (k in this._files)
x.push("[" +k+ "]: " +this._files[k]+ "");
// -- part of words --
x.push("------------- Words -------------");
for (k in this._words)
x.push("[" +k+ "]: " +this._words[k]+ "");
// -- part of bytes --
x.push("------------- Bytes -------------");
for (k in this._bytes)
x.push("[" +k+ "]: " +this._bytes[k]+ "");
// -- part of lines --
x.push("------------- Lines -------------");
for (k in this._lines)
x.push("[" +k+ "]: " +this._lines[k]+ "");
x = x.join("\n");
if (wrapperID) {
var a = doc.all(wrapperID), t=a.tagName.toLowerCase();
if (!a) return wnd.alert("HTMLElement ID \"" +wrapperID+ "\" is not valid!");
if (t=="input" || t=="textarea") a.value = x;
el