<html> <body> <script language="JScript"> <!-- function get(){ var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var myFolder = myFileSysObj.GetFolder("c:\Temp"); var myFolderCollection = myFolder.SubFolders; myFolderCollection.Add("test1"); myFolderCollection.Add("test2"); alert(myFolderCollection.Item(2).Name); } // End hide--> </script> Get the second item added to the c:temp Folders collection. <form name="myForm"> <input type="Button" value="Get Item" onClick='get()'> </form> </body> </html>