You have to import the System.IO Namespace *or* declare them using the full
namespace path. Eg.
To Import
-----------
Add the following line to the top of your file:
Imports System.IO
This will allow you to use the following code:
Dim d As New DirectoryInfo("C:\")
Dim f As FileInfo
For Each f In d.GetFiles
Debug.WriteLine(f.ToString)
Next
To Declare using full namespace:
--------------------------------
Dim d As New System.IO.DirectoryInfo("C:\")
Dim f As System.IO.FileInfo
For Each f In d.GetFiles
Debug.WriteLine(f.ToString)
Next
Hope this helps,
Trev.