如何杀死进程 [英] How to kill the process
本文介绍了如何杀死进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
当我单击1进程时,请先做一些工作,然后再单击返回,当我单击同一进程时,则不会刷新该进程.我的意思是说当第二次单击该过程时,调试不适用于页面加载.
因此,对于页面加载还是刷新,我应该怎么做?
谁能帮我提供代码.
在此先感谢您.
Hi everyone,
When i click on 1 process do some work then click on back, again when i click on same process then the process is not refreshed. I mean to say when the process is clicked for 2nd time then debug is not working for page load.
So for page load or for refresh, what i suppose to do?
Can anyone help me with the code.
Thanks in advance.
推荐答案
您好,我在计算机启动时使用此代码杀死不需要的进程.
Hi I am using this code to kill unwanted process when my computer starts.
Dim processList() As Process
processList = Process.GetProcessesByName("PName")
For Each proc As Process In processList
proc.Kill()
Next
如果我想杀死Explorer.exe进程,请写 Explorer 代替 PName
谢谢
If I want to kill Explorer.exe process then write Explorer in place of PName
Thank You
这个问题实际上包含答案:致电System.Diagnostics.Process.Kill
.请参阅 http://msdn.microsoft.com/en-us/library/system.diagnostics .process.aspx [ ^ ].
—SA
This question practically contains the answer: callSystem.Diagnostics.Process.Kill
. See http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].
—SA
这篇关于如何杀死进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文