I have a very simple VB.NET (I assume it's .NET, may be old style VB) application that I am trying to convert to C#
Here is the problem code:
Dim fso As New Scripting.FileSystemObject
Dim fdr As Folder
Dim fil As File
fdr = fso.GetFolder(path)
For Each fil In fdr.Files
do stuff
Next
I'm assuming the Folder is translated to an object of type System.IO.Directory, and File is System.IO.File, but I couldn't find an equivalent for the FileSystemObject.
What would the other functionality translate to?
Start Free Trial