Results 1 to 2 of 2

Thread: VB - Get files in path (recursed) using Dir()

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    VB - Get files in path (recursed) using Dir()

    Admittedly you can use FSO. Just something I came up while trying to get the hang of Dir(). This program loads files in the path (recursed) into a richtextbox.

    The starting path for the search is hardcoded, just modify. All files in the search path are transferred into an array. Hidden files are NOT added to the array. You can call the bubble sort after, if you want. The info in the array is then transferred to the richtextbox.

    Strangely the richtextbox sometimes displays double vbCrLf, but when I checked the array theres no blank info in the array.

    Anyway, hope it helps those who are getting acquainted with Dir().
    Attached Files Attached Files
    Last edited by leinad31; May 7th, 2003 at 05:13 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
  •  



Click Here to Expand Forum to Full Width