Hi All,
Wondering if someone could help me exclude files with a certain file extension?
I currently have this evaluation, but I'd like to exclude a particular file extension, e.g. .txt files from the MyFolder directory
Dim MyDirectory As New System.IO.DirectoryInfo("C:\MyFolder")
Dim Files = (From f In MyDirectory .GetFiles() Order By f.Name Descending Select f).Skip(2).First
Any help would be appreciated.
Thanks
Swain90
Wondering if someone could help me exclude files with a certain file extension?
I currently have this evaluation, but I'd like to exclude a particular file extension, e.g. .txt files from the MyFolder directory
Dim MyDirectory As New System.IO.DirectoryInfo("C:\MyFolder")
Dim Files = (From f In MyDirectory .GetFiles() Order By f.Name Descending Select f).Skip(2).First
Any help would be appreciated.
Thanks
Swain90