06-04-14, 06:32 PM
كود :
Dim count As Integer = 0
Dim extensions As String() = {".jpg", ".jpeg", ".png", ".gif"}
Dim paths As String() = IO.Directory.GetFiles(fbd.SelectedPath)
Array.ForEach(Of String)(paths, Sub(path As String) Array.ForEach(Of String)(extensions, Sub(ext As String) If path.ToLower().EndsWith(ext) Then count += 1))
MsgBox(count)
