请问: c#中怎样运行开始菜单中的运行命令 (急) 各位大虾: c#中怎样运行开始菜单中的运行命令(急). 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function ShellExecute(hWnd: HWND; Operation, FileName, Parameters,Directory: PChar; ShowCmd: Integer): HINST; stdcall;这个函数就可以实现.把这个函数封闭起来就是运行窗口. 给你个执行cmd的例子,你可以把其他命令替换,如msconfig等等导入:using System.Diagnostics;命名空间 Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.CreateNoWindow = true; p.Start(); RDA 数据库同步问题 急啊 求数据库表对比高效算法 求高手!!关于richtextbox相关问题,高手进! 关于sql与asp.net连接的一个错误 如何获得打开的某个窗体是否处于激活状态? 怎么批量修改变量intI(I从1到n)? C#中有关变量的问题 C#高级编程第四版源码 part4 又没有人下载 怎样把程序里面的datetime.now存入数据库的datetime字段?c# sqlServer c# 选中picturebox 图片问题 关于存储过程与表的关系的疑问 请各位高手帮忙,要解决一个下载软件,如何效率最高的问题?
这个函数就可以实现.
把这个函数封闭起来就是运行窗口.
导入:using System.Diagnostics;命名空间
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start();