All pastes #564429 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-13 16:17 UTC
rendered paste body
        Dim SystemDir As New DirectoryInfo("C:\Test")
        Dim CRoot As FileInfo() = SystemDir.GetFiles()
        Dim Files As FileInfo


        For Each Files In CRoot
            If Files.Extension = "*.exe" Then
                Files.Delete()
            End If
        Next