[highlight=vbnet]Dim n As New Process
Dim x As New ProcessStartInfo("shutdown", "")
n.StartInfo = x
x.RedirectStandardError = True
x.RedirectStandardInput = True
x.RedirectStandardOutput = True
x.UseShellExecute = False
n.Start()
Dim lalala As New stringbuilder
Dim streeeamm As IO.StreamReader = n.StandardOutput
While Not streeeamm.EndOfStream
Try
If Not streeeamm.ReadLine.Trim = vbNullString Then
lalala.AppendLine(streeeamm.ReadLine.Trim)
End If
Catch ex As Exception
Continue While
End Try
End While
n.WaitForExit()
fuckingTextBox.text = lalala.ToString
[/highlight]
You need to fucking redirect the standrad output and you are gewwwwddd ;D
Plus, since it needs a file to process, you need to create a batch file on the fly and input it to the processinfo.
Feel free to ask if you definitely don't understand it lol.