Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15064

[SOLVED] Skip Certain File Extension .GetFiles evaluation

$
0
0
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

Viewing all articles
Browse latest Browse all 15064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>