c#语言如何点击Button按钮打开桌面上的一个小软件!(.exe图标)!! 15
2个回答
展开全部
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = "cmd.exe"; 字符串是 文件url地址
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.RedirectStandardInput = true;
myProcess.StartInfo.RedirectStandardOutput = true;
myProcess.StartInfo.RedirectStandardError = true;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();//启动进程
myProcess.StartInfo.FileName = "cmd.exe"; 字符串是 文件url地址
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.RedirectStandardInput = true;
myProcess.StartInfo.RedirectStandardOutput = true;
myProcess.StartInfo.RedirectStandardError = true;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();//启动进程
展开全部
System.Diagnostics.Process firstProcess = new System.Diagnostics.Process();
firstProcess .StartInfo.FileName = "game.exe"; //字符串是 文件url地址
firstProcess .StartInfo.UseShellExecute = false;
firstProcess .StartInfo.RedirectStandardInput = true;
firstProcess .StartInfo.RedirectStandardOutput = true;
firstProcess .StartInfo.RedirectStandardError = true;
firstProcess .StartInfo.CreateNoWindow = true;
firstProcess .Start(); //启动线程
firstProcess .StartInfo.FileName = "game.exe"; //字符串是 文件url地址
firstProcess .StartInfo.UseShellExecute = false;
firstProcess .StartInfo.RedirectStandardInput = true;
firstProcess .StartInfo.RedirectStandardOutput = true;
firstProcess .StartInfo.RedirectStandardError = true;
firstProcess .StartInfo.CreateNoWindow = true;
firstProcess .Start(); //启动线程
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询