On Thu, 29 Apr 2004 12:54:46 GMT, Dave <last2try@earth link.net> wrote:
[color=blue]
>Hello, I hope some one can help.. How can I read the contents of a dir
>into an array. I just need the filename.ext
>Thanks...[/color]
S$ = Dir( "c:\*.bat" )
While Len( S$ )
N = N + 1
Ar$( N ) = S$
S$ = Dir
Wend
That is the most simplistic version
- but if you do anything more complicated, there are gotchas
VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.
Please respond only to the newsgroups so all can benefit.
"Dave" <last2try@earth link.net> wrote in message
news:riu190hhh0 psblmkncfua23pv [email protected] om...
: Hello, I hope some one can help.. How can I read the contents of a dir
: into an array. I just need the filename.ext
: Thanks...
Comment