I want to list all the files in "Temporary Internet Files" folder to listbox but it doesnt work !!!
On Global :
On Show :Code:function FolderToListbox(strObject,strFolder,bRecurse,tbFilters) for index, strExt in tbFilters do tbFile = File.Find(strFolder, strExt, bRecurse, false, nil, nil); if tbFile then for index, strPath in tbFile do local sPath= String.SplitPath(strPath); ListBox.AddItem(strObject, sPath.Filename, strPath); end end end end
Code:FolderToListbox("ListBox1", "C:\Documents and Settings\Button Maker\Local Settings\Temporary Internet Files", false, {"",""})

Reply With Quote