Results 1 to 2 of 2

Thread: get list of folders - help!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    here is my problem. i need to get a list of all the folders under the path.

    C:\windows\temporary internet files\

    I need it to do one of these two things:

    1) I need to store either the name of each folder or the name of each folder path in a different variable so that my program can use them.

    2) I need to get the program to use the name of each folder or the name of each folder path in a procedure until the procedure returns true.

    thanks for all your help.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Lightbulb

    How about using a DirListBox control and setting its PATH property to c:\windows\temporary internet files\

    and then loop through the control storing the folders listed in it

    dirlist1.path="c:\windows\temporary internet files"
    redim myarray(dirlist1.listcount-1)
    for intCounta = 0 to dirlist1.listcount -1
    myarray(intCounta)=dirlist1.list(intcounta)
    next

    DocZaf
    {;->


Posting Permissions

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



Click Here to Expand Forum to Full Width