4
13
64
注册会员
使用道具 举报
110
506
3273
管理员
'遍历寻找进程名 For Each p As Process In Process.GetProcesses() If p.ProcessName="程序进程名" Then p.Kill() '关闭进程,等于关闭软件 End If Next '根据进行名找到进程 If Process.GetProcessesByName("程序进程名").Length>0 Then MessageBox.Show("找到了!") Else MessageBox.Show("没有找到!") End If复制代码
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|小黑屋|苏州三木软件科技有限公司 ( 苏ICP备2022038390号 )苏公网安备 32058502010732号
苏公网安备 32058502010732号
GMT+8, 2026-2-5 18:00 , Processed in 0.067712 second(s), 22 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.