|
samual2004
初级用户
 
积分 30
发帖 13
注册 2006-1-6
状态 离线
|
『楼 主』:
【讨论】用 TASKKILL 关掉所有(除指定进程外的)进程
使用 LLM 解释/回答一下
我现在想处理一下进程的运行情况。
现在我想这样处理:
下面是我用tasklist >a.txt
保存下来的,想把这里面之外的进程都关掉,不知道大家有什么好的建议
System Idle Process 0 Console 0 16 K
System 4 Console 0 164 K
smss.exe 400 Console 0 336 K
csrss.exe 580 Console 0 4,068 K
winlogon.exe 712 Console 0 5,156 K
services.exe 764 Console 0 4,448 K
lsass.exe 776 Console 0 7,396 K
svchost.exe 964 Console 0 3,700 K
svchost.exe 1052 Console 0 4,484 K
svchost.exe 1104 Console 0 5,904 K
svchost.exe 1148 Console 0 13,984 K
msdtc.exe 1204 Console 0 4,840 K
svchost.exe 1368 Console 0 4,056 K
svchost.exe 1404 Console 0 3,512 K
svchost.exe 1544 Console 0 4,856 K
jjsvr4.exe 1768 Console 0 7,636 K
wmiprvse.exe 680 Console 0 5,584 K
svchost.exe 616 Console 0 4,728 K
conime.exe 1652 Console 0 3,324 K
taskmgr.exe 552 Console 0 5,504 K
TTPlayer.exe 196 Console 0 5,240 K
TheWorld2010.exe 2080 Console 0 28,412 K
Thunder5.exe 3228 Console 0 28,708 K
explorer.exe 2184 Console 0 24,652 K
wmiprvse.exe 3944 Console 0 5,540 K
taskkill /im (+除了在a.txt里面有的进程)
不知道怎么作才好。。
在此请教各位朋友了。
Last edited by namejm on 2007-1-27 at 07:43 PM ]
I now want to handle the running situation of processes.
Now I want to handle it like this:
The following is what I saved by tasklist >a.txt. I want to close all processes except those in a.txt. I don't know what good suggestions everyone has.
System Idle Process 0 Console 0 16 K
System 4 Console 0 164 K
smss.exe 400 Console 0 336 K
csrss.exe 580 Console 0 4,068 K
winlogon.exe 712 Console 0 5,156 K
services.exe 764 Console 0 4,448 K
lsass.exe 776 Console 0 7,396 K
svchost.exe 964 Console 0 3,700 K
svchost.exe 1052 Console 0 4,484 K
svchost.exe 1104 Console 0 5,904 K
svchost.exe 1148 Console 0 13,984 K
msdtc.exe 1204 Console 0 4,840 K
svchost.exe 1368 Console 0 4,056 K
svchost.exe 1404 Console 0 3,512 K
svchost.exe 1544 Console 0 4,856 K
jjsvr4.exe 1768 Console 0 7,636 K
wmiprvse.exe 680 Console 0 5,584 K
svchost.exe 616 Console 0 4,728 K
conime.exe 1652 Console 0 3,324 K
taskmgr.exe 552 Console 0 5,504 K
TTPlayer.exe 196 Console 0 5,240 K
TheWorld2010.exe 2080 Console 0 28,412 K
Thunder5.exe 3228 Console 0 28,708 K
explorer.exe 2184 Console 0 24,652 K
wmiprvse.exe 3944 Console 0 5,540 K
taskkill /im (+ processes not in a.txt)
I don't know how to do it well..
Here I ask all friends for help.
Last edited by namejm on 2007-1-27 at 07:43 PM ]
|
|
2007-1-27 14:20 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
标题党~~~汗一个。for+findstr
Clickbait~~~Sweat one. for+findstr
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-1-27 14:34 |
|
|
qasa
高级用户
   
积分 959
发帖 311
注册 2006-4-11 来自 广东-LianJiang
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
词不达意,熊猫来咬人的
Inadequate words, the panda is here to bite people
|

κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生 |
|
2007-1-27 14:37 |
|
|
samual2004
初级用户
 
积分 30
发帖 13
注册 2006-1-6
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
假如我说的不清楚的话,
就敬请各位朋友见谅了,
我的意思是说把这个文件
里面没有的所有进程
都关掉啊。。
If what I said is not clear,
please forgive me, everyone.
I mean to close all processes that are not in this file.
|
|
2007-1-27 14:50 |
|
|
TLang
初级用户
  Alpha
积分 46
发帖 21
注册 2007-1-27
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
照二楼说的~~
As the second floor said~~
|

Impossible's Nothing! |
|
2007-1-27 23:04 |
|
|
samual2004
初级用户
 
积分 30
发帖 13
注册 2006-1-6
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
谢谢楼上的建议。
我写好了那个分7步的批处理之后
会发上来分享的。
Thanks for the suggestions from the person above.
After I finish writing that batch processing with 7 steps,
I will post it here to share.
|
|
2007-1-27 23:38 |
|
|
youxi01
高级用户
   
积分 846
发帖 247
注册 2006-10-27 来自 湖南==》广东
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
曾经写过一个所谓的 “ 进程分析批处理”,在这里,要达到楼主的要求稍微改动一下就行了:
@echo off
setlocal enabledelayedexpansion
for /f %%i in (ProcessList.ini) do set %%i=A
echo 敬告:
echo.
echo 以下进程可能存在危险:
echo ====================================
for /f %%i in ('tasklist /NH') do if /I not defined %%i echo %%i
echo ====================================
pause>nul
说明:
1、ProcessList.ini 为你定义的进程列表
2、如果合乎要求的话将 " echo"改成“ Taskkill”就行了。
Last edited by youxi01 on 2007-1-28 at 02:51 AM ]
Once wrote a so-called " Process Analysis Batch". Here, to meet the building owner's requirements, just make a slight modification:
@echo off
setlocal enabledelayedexpansion
for /f %%i in (ProcessList.ini) do set %%i=A
echo Notice:
echo.
echo The following processes may be dangerous:
echo ====================================
for /f %%i in ('tasklist /NH') do if /I not defined %%i echo %%i
echo ====================================
pause>nul
Instructions:
1. ProcessList.ini is the process list you defined
2. If it meets the requirements, change " echo" to " Taskkill".
Last edited by youxi01 on 2007-1-28 at 02:51 AM ]
|
|
2007-1-28 02:49 |
|
|
samual2004
初级用户
 
积分 30
发帖 13
注册 2006-1-6
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
谢谢楼上的好东西,
我会尽快完善我的作品
跟大家分享的。。
我的作品叫
“打做一个
实用的防毒xp/2003系统”,
分了7步,
这是其中的一步。
Last edited by samual2004 on 2007-1-28 at 10:45 AM ]
Thanks to the good stuff from the person above,
I will improve my work as soon as possible
and share it with everyone...
My work is called
"Make a
Practical Anti-Virus XP/2003 System",
divided into 7 steps,
this is one of the steps.
Last edited by samual2004 on 2007-1-28 at 10:45 AM ]
|
|
2007-1-28 08:10 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by samual2004 at 2007-1-28 08:10:
谢谢楼上的好东西,
我会尽快完善我的作品
跟大家分享的。。
我的作品叫
“打做一个
实用的防毒xp/2003系统”,
分了7步,
这是其中的 ...
支持.强烈期待中!
Originally posted by samual2004 at 2007-1-28 08:10:
Thanks for the good stuff above,
I will improve my work as soon as possible
to share with everyone. ..
My work is called
"Make a
Practical Virus - Resistant XP/2003 System",
divided into 7 steps,
this is one of the ...
Support. Strongly looking forward!
|
|
2007-1-30 23:11 |
|
|
talenyi
新手上路

积分 7
发帖 4
注册 2007-1-22
状态 离线
|
|
2007-1-31 05:20 |
|
|
hxwxyz
中级用户
  
积分 245
发帖 123
注册 2007-6-8
状态 离线
|
|
2007-9-18 15:16 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
//打做一个实用的防毒xp/2003系统
期待中
主要是想看看楼主怎样杀掉超级顽固的进程
//Make a practical anti-virus XP/2003 system
Looking forward
Mainly want to see how the landlord kills super stubborn processes
|
|
2007-9-19 03:54 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
请问
@echo off
setlocal enabledelayedexpansion
for /f %%i in (ProcessList.ini) do set %%i=A
echo 敬告:
echo.
echo 以下进程可能存在危险:
echo ====================================
for /f %%i in ('tasklist /NH') do if /I not defined %%i echo %%i
echo ====================================
pause>nul
请问红色部分如何解决ProcessList.ini里带空格的进程,比如Warcraft III.exe,实际输出时变为了Warcraft后面部分消失了.
尝试用这样的for /f "skip=3 tokens=1 delims=" %%i in ('tasklist /NH')来代替也没法解决,不知道哪里出问题,
Please provide the complete Chinese text that needs to be translated along with the code block again. The current information seems incomplete for a full translation. Please make sure the entire content to be translated is provided.
|

http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2007-12-4 12:32 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
有空格的要用双"
for /f "toekns=* delims=" %%i in ("ProcessList.ini") do set %%i=A
There is a typo in the original Chinese text. The correct command should be "tokens" instead of "toekns". The translated content with correction is:
for /f "tokens=* delims=" %%i in ("ProcessList.ini") do set %%i=A
|
|
2007-12-4 16:02 |
|