Results 1 to 4 of 4

Thread: Loading folder names

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    108

    Loading folder names

    Ok, what i want to do is load all of the names of all folders in a certain directory. for instance, how would i load all of the folder names inside

    app.path & "\contacts"

    into a list box, as well as an array, and then when a name is clicked in the list box, the names of the text files within that folder, are loaded into an array. how would i do this?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Loading folder names

    It has been answered many times. Simply do a search on the forums

    http://www.vbforums.com/search.php?

    Try searching for List Folders, List Subfolders ...etc.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    108

    Re: Loading folder names

    ok, i found that i could do what i wanted to with a directory list box, but how would i load the contents of that folder (they will be text files) into the program like this.

    1.txt is loaded into text1
    2.txt is loaded into text2

    and continue for a total of 5 text files?

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Loading folder names

    You can do that by searching too. Search for "List Files", "FindFilesAndFolders".
    And for loading files search for "Load File", "Load text file", "Save text file" etc. You will see that almost any question you have is probably already answered.

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