结束流程 [英] End a Process

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

问题描述

任何人都可以帮助我结束一个名为"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]

推荐答案

在CP上查看以下内容:

http://www.codeproject.com/KB/threads/killprocess.aspx [ ^ ]

修改:
Look here on CP:

http://www.codeproject.com/KB/threads/killprocess.aspx[^]

Modification:
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


您是否尝试过

iphuc帮助
iphuc出口

或类似这样的进程名称,也许是

iphuc关闭

艾伦.
Have you tried

iphuc help
iphuc exit

or with a process name like that, perhaps it''s

iphuc off

Alan.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆