RexSmith (5/20/2010)
This is what I had done Dim f As String
For Each f In System.IO.Directory.GetFiles(path)
If f.EndsWith(".exe") Or f.EndsWith(".EXE") Then
a = "sssss"
Else
System.IO.File.Delete(f)
End If
Next f
You could tidy up a little, but I doubt it will make any difference other than to aesthetics:
If f.ToUpper.EndsWith(".EXE") Then
....