The Files property returns a collection consisting of all the File objects contained in the folder. This includes hidden and system files.
<html> <script language="JScript1.1"> <!-- var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var myFolder = myFileSysObj.GetFolder("\\temp"); var myEnum = new Enumerator(myFolder.Files); while(!myEnum.atEnd()){ document.write(myEnum.item() + '<br>'); myEnum.moveNext(); } --> </script> </html>