Anybody know a faster way to get a list of subdirectories in jscript than using the fileSystemObject?
Using the following example lifted directly from the msdn docs:
var fso, f, fc, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(folderspec);
fc = new Enumerator(f.SubFolders);
s = "";
for (; !fc.atEnd(); fc.moveNext())
{
s += fc.item();
s += "<br>";
}
return(s);
Running on the network here, it's taking almost second just to return a list of 20 subdirectory names, which is too darn slow. Python has some methods that should do this lickety split, but we just wanted to check if anyone's found a native jscript technique before we build a wrapper.
-Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi