<br><script> <BR>var s=""; <BR>for(var i = 0; i < datas.length ; i++){ <BR> s+=datas[i]+"||||"; <BR>} <BR>document.write(s); <BR></script> <br><br><br><script> <BR>function init(){ <BR> var fso = new ActiveXObject("Scripting.FileSystemObject"); <br><br> var folder = fso.GetFolder("pict"); <BR> var datas = fso.CreateTextFile("pict/datas.ini",true); <BR> datas.WriteLine("var datas = new Array();") ; <br><br><BR> var fenum = new Enumerator(folder.Files); <BR> for (var i = 0 ; !fenum.atEnd(); fenum.moveNext(),i++){ <BR> datas.WriteLine("datas["+ i +"] = \""+ fenum.item().Name +"\";") ; <BR> } <BR> datas.Close(); <br><br> //var f1 = fso.GetFile("pict\\a.txt"); <BR> for(var file in folder.Files){ <BR> alert(file); <BR> //alert("File last modified: " + file.DateLastModified); <BR> } <BR>} <BR></script> <br><br><input> <br>