中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-29 08:05
47,816 topics / 349,916 posts / today 0 new / 48,265 members
DOS批处理 & 脚本技术(批处理室) » How to end all processes except the specified ones?
Printable Version  1,617 / 8
Floor1 juventusryp Posted 2007-06-02 00:01
初级用户 Posts 40 Credits 88
How to end all processes except the specified one
Floor2 lxmxn Posted 2007-06-02 00:21
版主 Posts 4,938 Credits 11,386
Floor3 juventusryp Posted 2007-06-02 00:27
初级用户 Posts 40 Credits 88
Originally posted by lxmxn at 2007-6-2 12:21 AM:
Please search by yourself before asking questions.

http://www.cn-dos.net/forum/viewthread.php?tid=29777

http://www.cn-dos.net/forum/viewthread.php?tid=27155

http://www.cn-d ... Thank you, moderator. I'm troubled to ask what the search keywords are... I searched for "end process" but none of these three were found :(
Floor4 lxmxn Posted 2007-06-02 00:31
版主 Posts 4,938 Credits 11,386
When searching, you should select "Search post content" under the "Search range", and then search with the keyword "process".
Floor5 chenjide1314521 Posted 2007-06-02 02:30
初级用户 Posts 19 Credits 42
Hehe, this is simple, watch my code

Check if the Wanxiang process exists. If it does, loop every minute; otherwise, send a Feige Messenger to the host that Wanxiang has been cracked
:a
ping 127.1 -n 60 >nul 2>nul
tasklist|findstr /i "WX.exe" ||net send 192.168.1.254 Warning: Wanxiang has been illegally cracked, please ask the cashier MM to contact the network administrator immediately, bring the tools, hurry up, NND!!!
tasklist|findstr /i "WX.exe" ||net send 192.168.1.254 Warning: Wanxiang has been illegally cracked, please ask the cashier MM to contact the network administrator immediately, bring the tools, hurry up, NND!!!
goto :a

[ Last edited by chenjide1314521 on 2007-6-2 at 02:31 AM ]
Floor6 chenjide1314521 Posted 2007-06-02 02:32
初级用户 Posts 19 Credits 42
Originally posted by juventusryp at 2007-6-2 12:01 AM:
How to end all processes except the specified one?


......I'm off the point......
Floor7 chenjide1314521 Posted 2007-06-02 02:39
初级用户 Posts 19 Credits 42
Are you going to prohibit illegal processes?

How many illegal processes are to be prohibited?

If there are thousands of processes to be prohibited, scanning once will take a very long time, and your machine will definitely crash.

You should at least say what your use is, that's all.
Floor8 youxi01 Posted 2007-06-02 12:04
高级用户 Posts 247 Credits 846 From 湖南==》广东
Through the method of findstr, the efficiency may be relatively poor. Just as the friend upstairs is going to say, if there are many processes, it will take a long time. I think defining the process first and then using if defined to check should greatly improve the efficiency.
Floor9 chenjide1314521 Posted 2007-06-02 18:46
初级用户 Posts 19 Credits 42
Originally posted by youxi01 at 2007-6-2 12:04 PM:
The method through findstr may be relatively less efficient. Just as the friend upstairs is going to say, if there are many processes, it will take a long time. I think defining the process first and then using if defined to check should greatly improve efficiency.



I don't know much about DOS

If defined finds the matching character and kills it if there is any

It's simply like this

For something more professional, I think using a program is better

Traversing tens of thousands of virus process libraries, with a P3 CPU 900, such a machine has 100% CPU usage for about 10 seconds

If the machine is better, the speed will be faster

If the landlord wants it, add my Q 372030668
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023