Make sure you ';Import'; System.Diagnostics at the top of the file
The documentation can be found here: http://msdn.microsoft.com/en-us/library/鈥?/a>
Dim processStartInfo As New ProcessStartInfo(';someFile.jar';);
processStartInfo.CreateNoWindow = true;
processStartInfo.UseShellExecute = false;
Dim process As Process = Process.Start(processStartInfo);
process.WaitForExit();
Dim exitCode As Integer = Process.ExitCode;
' Do something with ExitCode if you want
process.Close();
BTW, if you are a Java developer you should consider using C# if possible. It can ';talk'; to any code developed in VB and the syntax is almost identical to Java.
No comments:
Post a Comment