如何在v#中启动一个.exe文件??在线等,回答马上给分

xrxrxr 2002-01-10 04:30:01
-
...全文
94 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xrxrxr 2002-01-10
  • 打赏
  • 举报
回复
xiexie
hmbory 2002-01-10
  • 打赏
  • 举报
回复
upup
duxqi 2002-01-10
  • 打赏
  • 举报
回复
namespace: System.Diagnostics;
class: Process
method: public static Process Start(string fileName);
Assembly: System (in System.dll)
example:

using System.Diagnostics;
public class test
{
public static void Main()
{
Process.Start("notepad.exe");
}
}
starcbh 2002-01-10
  • 打赏
  • 举报
回复
Process p=new Porcess();
p.starinfo.filename="exefile";
p.start();

110,526

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧