本文介绍了结束流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我结束一个名为"iphuc.exe"的过程吗?
在此先感谢


顺便说一句,如果有esaier方式,这是我的代码

Can anyone pls help me to end a process called "iphuc.exe"
thanks in advance


btw here is my code if there is an esaier way

Process^ myProcess = gcnew Process;
myProcess->StartInfo->FileName = "cmd.exe";
myProcess->StartInfo->Arguments = "/c C:/iphuc.exe -o deviceinfo > C:/conn";
myProcess->StartInfo->CreateNoWindow = true;
myProcess->Start();




[edit]在预标签中添加了OP的代码[/edit]




[edit]Added OP''s code, in pre tags[/edit]

推荐答案

Process^ myProcess = gcnew Process;
myProcess->StartInfo->FileName = "cmd.exe";
myProcess->StartInfo->Arguments = "/c C:/iphuc.exe -o deviceinfo > C:/conn";
myProcess->StartInfo->CreateNoWindow = true;
myProcess->Start();

//Here is how to kill it
myProcess->Kill();



那应该对你有帮助!

问候,
曼弗雷德(Manfred)



That should help you!

Regards,
Manfred



这篇关于结束流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 14:49