Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2007
    Posts
    172

    Grin what am I doing wrong ?

    I want to list all the files in "Temporary Internet Files" folder to listbox but it doesnt work !!!

    On Global :
    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
    On Show :
    Code:
    FolderToListbox("ListBox1", "C:\Documents and Settings\Button Maker\Local Settings\Temporary Internet Files", false, {"",""})

  2. #2
    Join Date
    Oct 2007
    Posts
    44
    Try with this

    On Show :
    FolderToListbox("ListBox1", "C:\\Documents and Settings\\Button Maker\\Local Settings\\Temporary Internet Files", false, {"",""})

  3. #3
    Join Date
    Mar 2007
    Posts
    452
    no it didnt work !!! it doesnt fill the listbox...

  4. #4
    Join Date
    Mar 2007
    Posts
    172
    yes for me too...

  5. #5
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    try like that...

    Code:
    Files = File.Find("C:\\Documents and Settings\\Button Maker\\Local Settings\\Temporary Internet Files", "*.*", true, false, ShowSearchProgress, nil);
    if Files then
         ListBox.DeleteItem("ListBox1", LB_ALLITEMS)  
         for i,v in Files do
              tbSplit = String.SplitPath(v);
              ListBox.AddItem("ListBox1", tbSplit.Filename, v);
         end
    end
    Last edited by jackdaniels; 12-28-2008 at 03:36 AM.

  6. #6
    Join Date
    Mar 2007
    Posts
    172

    Grin

    thanks alot jackdaniels...

    is it possible to make it with progress bar because it takes time to load ???

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    use a callback in the File.Find function
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. what's wrong with these codes ? help me !
    By Jordanfernando in forum AutoPlay Media Studio 7.5
    Replies: 1
    Last Post: 12-22-2007, 02:20 AM
  2. legacy files seem to behave wrong for multi versions
    By rjfioravanti in forum Visual Patch 3.5 Discussion
    Replies: 1
    Last Post: 11-12-2007, 01:04 PM
  3. delete project on wrong password so many times?
    By insane in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 06-16-2007, 07:48 AM
  4. My first VB DLL for AMS, or what am I doing wrong?
    By itamar in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-25-2004, 01:56 PM
  5. NEED HELP ON A MESSAGE AFTER A WRONG PASSWORD
    By dragon in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 02-21-2002, 11:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts