Question .jar or .bat running

Timtower

New member
Joined
Aug 3, 2012
Messages
1
Programming Experience
Beginner
Hi

I was wondering if it is possible to create an vb.net form that allows you to select an .jar, or .bat file, and run that as an .exe
This allows me to follow my game server without having it open all the time.
The picture shows how I want it to look like, I use vb.net barely an month now so I won't be able to create this on my own.
nieuweconsolebukkit.PNG
Any idea's?
This is all I got so far:
VB.NET:
Public Class BukkitServerConsole
    Private WithEvents BukkitServer As Process
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Sendbutton.Click

    End Sub
End Class
Outputbox = De big textbox
Inputbox = The thin textbox in the bottom
Button1 = The "Send" button
 
Last edited:
Create the Process and configure .StartInfo, look up RedirectStandardOutput/RedirectStandardInput.
After you have started the process call BeginOutputReadLine method and handle OutputDataReceived event.

Process class and ProcessStartInfo class is well documented in help, and you can find many examples on the web also.
 

Latest posts

Back
Top