<html> <head> <script> function ShowFolderFileList() { var fso, f, f1, fc, s; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFolder("My Folder"); fc = new Enumerator(f.files); s = ""; for (; !fc.atEnd(); fc.moveNext()) { s += fc.item(); s += "<br>"; } document.write(s); } </script> </head> <body> <form name="myForm"> <input type="Button" value="Get File" onClick='ShowFolderFileList' > </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)