Burp commands get burp version

c:\Program Files\Burp\bin\burp.exe -v

 

process1.StartInfo.FileName = "c:\\Program Files\\Burp\\bin\\burp.exe";
process1.StartInfo.Arguments = "-v";
process1.StartInfo.UseShellExecute = false;
process1.StartInfo.RedirectStandardOutput = true;
process1.StartInfo.RedirectStandardError = true;
process1.Start();
output = process1.StandardOutput.ReadToEnd();
result = output.Split('-');
labelBurpVersion.Text = result[result.Count()-1];
process1.WaitForExit();