equivalent of the VB6 ExitProcess in vb.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I need to convert a VB6 console application. In this application, when a error is detected, the process is terminated with the command : "ExitProcess 99"

How I can do that with vb.net. I know that I can use "System.Diagnostics.Process.GetCurrentProcess.CloseMainWindow" but I am unable send the return code "99"

Thank for you'r help

Éric
 
Back
Top