This blog is a depository for things I have found regarding VB.NET and C#.NET development (and other things I may need to remember). This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
Monday, July 6, 2009
Setting the Exit Code when exiting a VB.NET or C# Console App
To set the Exit Code (ErrorLevel) when a VB.NET or C# Console Application exits, use the following (or similar):
Dim retCode as Integer = 0 . . . System.Environment.Exit( retCode)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.