Ejemplo n.º 1
0
        /// <summary>
        ///     执行DOS命令
        /// </summary>
        /// <param name="dosCommand"></param>
        private void RunCommand(string dosCommand)
        {
            var info = new StringBuilder();

            MongodbDosCommand.RunDosCommand(dosCommand, info);
            MyMessageBox.ShowMessage("DOS", "Dos Result:", info.ToString(), true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 运行
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdRunDos_Click(object sender, EventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            if (this.txtDosCommand.Text != String.Empty)
            {
                MongodbDosCommand.RunDosCommand(txtDosCommand.Text, sb);
                this.txtDosCommand.Text += System.Environment.NewLine;
                this.txtDosCommand.Text += sb.ToString();
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     运行
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdRunDos_Click(object sender, EventArgs e)
        {
            var sb = new StringBuilder();

            if (txtDosCommand.Text == string.Empty)
            {
                return;
            }
            MongodbDosCommand.RunDosCommand(txtDosCommand.Text, sb);
            txtDosCommand.Text += Environment.NewLine;
            txtDosCommand.Text += sb.ToString();
        }