Board logo

标题: [其他] 批处理如何禁止指定的进程 [打印本页]

作者: dgccjsj    时间: 2009-9-16 16:12     标题: 批处理如何禁止指定的进程

禁用几个指定的进程,如迅雷、酷狗,请问批处理怎么写,谢谢
作者: wangshuping42    时间: 2009-9-16 16:34

  1. @echo off
  2. :start
  3. for /f %%i in ('tasklist') do (
  4. if /i "%%i"=="webthunder.exe" (taskkill /im %%i /f )
  5. if /i "%%i"=="kugou.exe" (taskkill /im %%i /f )
  6. )
  7. ping 127.0.0.1 -n 10 >nul
  8. goto start
复制代码
kugou.exe webthunder.exe是进程名
作者: smallbear    时间: 2009-9-16 19:25

学习了,回头试试。谢谢。
作者: lianfayong    时间: 2009-9-16 20:45

又学了一招`  实用.
作者: yycup1111    时间: 2009-9-16 22:39

是禁用指定进程呢,还是关闭指定进程?
作者: Seter    时间: 2009-9-19 14:42

类似问题已经发过了..请楼主在板块内搜索一下
禁用原理:
1.使用与dll同名文件夹使读取dll时出错
2.使用映像劫持重定向文件
作者: dgccjsj    时间: 2009-9-21 22:26

谢谢大家,现在可以了




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2