process.Kill()无法停止WINWORD.EXE [英] process.Kill() fails to stop WINWORD.EXE
本文介绍了process.Kill()无法停止WINWORD.EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个需要杀死WINWORD.exe进程的应用程序。
我正在使用以下过程
I have an application which needs to kill the WINWORD.exe process.
I am using the following process
Dim CProcess() As Process = System.Diagnostics.Process.GetProcessesByName("WINWORD")
For Each Program As Process In CProcess
Program.Kill()
Next
这在我的机器上工作正常。当exe被放入客户端机器时,这不起作用。
我认为这是因为,客户端机器没有杀死进程的权限,而Visual Studio也有相同的权限。
任何请求帮我解决这个问题。
感谢您的期待...... .......
--- Sijo
This is working fine in my machine. when the exe is put in client machine this is not working.
I think this is because, the client machine does not has the permission to kill a process, and Visual Studio has the same.
Anyone pleas help me out to solve this.
Thank you in anticipation............
--- Sijo
推荐答案
尝试以管理员身份运行您的应用程序:)
try to run your application as an ADministrator :)
这篇关于process.Kill()无法停止WINWORD.EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文