show all files in a directory

Dim file() As String
file = System.IO.Directory.GetFiles(“c:\”)
Dim enumerator As System.Collections.IEnumerator
enumerator = file.GetEnumerator
While enumerator.MoveNext
Console.WriteLine(CStr(enumerator.Current))
End While

Related posts:

  1. Display all drives Display all drives on your system with Visual Basic.net ‘create...
  2. Does a directory exist Create a new Windows Forms application, and add a TextBox...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>