The following is some jscript to get a list of .js files located in the same folder as the .thml was started from.
var fso = new ActiveXObject("Scripting.FileSystemObject");
var folder = fso.GetFolder(".");
var files = new Enumerator(folder.files);
var fileListshow = ;
var fileListcall = ;
// add file to array
if ( files.item().name.lastIndexOf ( ".js" ) == ( files.item().name.length - 3 ) )
When I was testing it on the desktop it worked fine. Place the .html and other .js files in the same folder eslewhere and it cant find them. Why?