
10-27-2004, 08:30 PM
|
|
Freshman
|
|
Join Date: Oct 2004
Posts: 42
|
|
Quote:
|
Originally Posted by VBISCOOL
Hello all,
Supposing I have a path e.g C:\Documents and Settings\jxe3Desktop\Various
and this was called LongPath
Using system.IO how can I get the program to get every item in this path and list it in, say a textbox or listview??
I've tried IO.directory.getfiles() but i can't do anything with it.
Any help much appreciated
Thanks
|
This is what I'd use........
Code:
Dim FileDirList() As String = Directory.GetFiles(LongPath)
For i As Integer = 0 To FileDirList.GetUpperBound(0)
Debug.WriteLine(FileDirList(i)) 'Obviously change this to add to whatever control you want
Next
|
|