I'm having a little trouble working with files and folders in VB.Net. I'm new to .Net and have been using VB6 for the last 2 years. To perform the operations I would usually need with VB6 is easy.
I would usually do something like this in VB6:
Reference Windows scripting runtime.
Dim Fsys as new FileSystemObject
Dim XFile as File
Dim XFolder as Folder
Set XFolder = FSys.GetFolder("C:\Data\SubFolder1\SubFolder2\")
For Each XFile In XFolder.Files
XFile would now reference a specific file and would exposed properties and methods i found useful.
How can do a similar sort of thing in .Net?