ButtonMaker
12-27-2008, 09:25 AM
I want to list all the files in "Temporary Internet Files" folder to listbox but it doesnt work !!!
On Global :
function FolderToListbox(strObject,strFolder,bRecurse,tbFil ters)
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
On Show :
FolderToListbox("ListBox1", "C:\Documents and Settings\Button Maker\Local Settings\Temporary Internet Files", false, {"",""})
On Global :
function FolderToListbox(strObject,strFolder,bRecurse,tbFil ters)
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
On Show :
FolderToListbox("ListBox1", "C:\Documents and Settings\Button Maker\Local Settings\Temporary Internet Files", false, {"",""})