예제 #1
0
 public static void ECMD(string StartFileName, string StartFileArg, params string[] AppendText)
 {
     try
     {
         wp = new WriteProgress();
         wp.IsUserClosing = true;
         ExecuteCMD(StartFileName, StartFileArg);
         wp.ShowDialog();
         if (wp.OnClosingException != null)
         {
             throw wp.OnClosingException;
         }
     }
     catch
     {
         //MessageBox.Show("Test");
         KillProcessByName(Path.GetFileName(StartFileName));
         throw;
     }
 }
예제 #2
0
        public static void ECMD(string StartFileName, string StartFileArg, params string[] AppendText)
        {
            try
            {
                wp = new WriteProgress();
                wp.IsUserClosing = true;
                ExecuteCMD(StartFileName, StartFileArg);
                wp.ShowDialog();
                if (wp.OnClosingException != null)
                {
                    throw wp.OnClosingException;
                }
            }
            catch
            {
                //MessageBox.Show("Test");
                KillProcessByName(Path.GetFileName(StartFileName));
                throw;
            }

        }