Imports System.IO Public Class Tester Public Shared Sub Main Try System.IO.Directory.Delete("c:\a", True) Catch ex As Exception Console.WriteLine(ex.ToString) Finally Beep() End Try End Sub End Class