Am calling it through JS and OS is WinXP.
Anyone else get this problem?
Thanks,
James
var subFile;
var file = Components.classes["@mozilla.org/file/local;
1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\");
while(file.directoryEntries.hasMoreElements()) {
subFile = file.directoryEntries.getNext();
subFile.QueryInterface(Components.interfaces.nsIFile);
dump(subFile.path + "\n");
}
Gives:
C:\AUTOEXEC.BAT
C:\AUTOEXEC.BAT
C:\AUTOEXEC.BAT
C:\AUTOEXEC.BAT
...