Here is a technique usable in IE Only
var fso=new ActiveXObject('Scripting.FileSystemObject');
function ShowFilesIn(path) // path could be 'C:\Test' for example.
{
if(fso.FolderExists(path))
{
ShowFiles(fso.GetFolder(path));
}
}
function ShowFiles(folderpath)
{
var objFso = new Enumerator(folderpath.Files);
for(i=0;!objFso.atEnd();objFso.moveNext())
{
alert(objFso.item().name);
}
}
Share with