/*  private void RunRTUEMu()
  * {
  *    ProcessStartInfo startInfo = new ProcessStartInfo();
  *    startInfo.CreateNoWindow = false;
  *    startInfo.UseShellExecute = false;
  *    startInfo.FileName = @"C:\RTUEMU\RTUEMU.exe";
  *    startInfo.WindowStyle = ProcessWindowStyle.Hidden;
  *    //startInfo.Arguments = " \"" + src + "\"" + " \"" + dst + "\"" + " \"" + fln + "\"" + " /z";
  *    try
  *    {
  *        using (Process exeProcess = Process.Start(startInfo))
  *        {
  *            exeProcess.WaitForExit();
  *        }
  *    }
  *    catch
  *    {
  *        // Log error.
  *    }
  * } */
 private void RunRTUAsync()
 {
     cntrl.StartProcess(@"C:\RTUEMU\RTUEMU.exe", "");
     cntrl.Update();
     richTextBox1.Text      = " RTU Emulator Has been started" + sb.ToString();
     richTextBox1.Font      = new Font(richTextBox1.Font, FontStyle.Bold);
     richTextBox1.BackColor = Color.Green;
     richTextBox1.ForeColor = Color.White;
     btnasync.Enabled       = false;
     btnStop.Enabled        = true;
 }