Environment.ExitCode
Imports System Public Class MainClass Shared Sub Main() Console.WriteLine("ExitCode: " & System.Environment.ExitCode ) End Sub End Class