用户 密码
太平洋系列网站:太平洋汽车网 | 太平洋游戏网
首  页 | 今日报价 | 新闻中心 | 数码世界 | 硬件资讯 | 软件资讯 | 下载中心 | 通讯世界 论  坛 | 产品大全 | 导购大全 | 渠道商情 | 解决方案 | 招聘培训 | 产品调查 | 评 测 室
各地今日报价 北京 广州 上海 深圳 南宁 重庆 山东 南京 香港 辽宁

-
您现在的位置:软件资讯 > 开发特区 > .net技术
做一个Windows窗体版的DOS分析器

出处:PConline
责任编辑:ljx

[04-5-21 10:29] 作者:stardicky
-
  using System;
  using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  using System.Data;
  using System.Diagnostics;

  namespace EzoneDOSApp
  {
   ///
   /// Form1 的摘要说明。
   ///

   public class Form1 : System.Windows.Forms.Form
  {
   private System.Windows.Forms.TextBox txtCmd;
   private System.Windows.Forms.Button btnOK;
   private System.Windows.Forms.RichTextBox rtbResult;
   ///
   /// 必需的设计器变量。
   ///

   private System.ComponentModel.Container components = null;

   private Process ProcessCmdObject;
  
   public Form1()
   {
   //
   // Windows 窗体设计器支持所必需的
   //


   InitializeComponent();
  
   //
   // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
   //
   ProcessCmdObject=new Process();
  
   ProcessCmdObject.StartInfo.FileName="cmd.exe";

   ProcessCmdObject.StartInfo.UseShellExecute=false;
  
   ProcessCmdObject.StartInfo.RedirectStandardInput=true;
  
   ProcessCmdObject.StartInfo.RedirectStandardOutput=true;
  
   ProcessCmdObject.StartInfo.RedirectStandardError=true;
  
   ProcessCmdObject.StartInfo.CreateNoWindow=true;
  
   ProcessCmdObject.Start();
  
   }
  
  
  

  
察看评论详细内容 我要发表评论
作者笔名 简短内容 发表时间
:

  
发给好友 我要报错 投稿给我们 加入收藏 返回顶部

-
本栏今日更新
相关文章
·GUI奥运会:最新颖Winamp面板冠军出炉
·网上永无宁日!微软用户遭遇麻烦
·末日来临?苹果将终止更新Mac OS X
·苹果iTunes工具包让WinAMP播放ACC
·想知道你MSN好友的IP吗?
·解决SP2无法使用McAfee的办法
·一鼠走天下:IE也玩鼠标手势
·推荐:安装防火墙的建议
·深入编程:控制面板知多少(下)
·SP2将面市:微软推崇Windows防火墙
·为何一上网Explorer就出错
·GUI界的奥运会!Windows最佳样式出炉
·为打倒Windows,Novell将开放源代码
·Windows趋向娱乐型!XP MCE疆域再扩
·Windows XP SP2将使网络安装智能化
·险!Windows和IE同时出现高度危急漏洞
文章搜索
高级搜索
本栏今日焦点
IT培训十大热门文章
-