中国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-05 17:28
48,039 topics / 350,124 posts / today 2 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] How can I use a batch file to end a process
Printable Version  1,407 / 4
Floor1 kwenshen Posted 2007-08-27 08:24
初级用户 Posts 8 Credits 30
I used a batch file to open a program, but I just can't close it. What should I do,,

Can someone teach me how to use a batch file to end a process

Please be detailed,,thanks
Floor2 halulove Posted 2007-08-27 08:38
初级用户 Posts 19 Credits 43
Use taskkill, for the detailed method go search Google
Floor3 majoy Posted 2007-08-27 09:45
新手上路 Posts 4 Credits 10
taskkill /f /im process name
This command can only be used on XP
For example, if I want to end all QQ.exe currently open on the computer
taskkill /f /im qq.exe

[ Last edited by majoy on 2007-8-27 at 10:00 AM ]
Floor4 kwenshen Posted 2007-08-27 20:51
初级用户 Posts 8 Credits 30
Many thanks
Floor5 long626201 Posted 2007-08-27 23:25
初级用户 Posts 52 Credits 100 From 云南
Originally posted by majoy at 2007-8-27 09:45:
taskkill /f /im process name
This command can only be used on XP
For example, if I want to end all QQ.exe currently open on the computer
taskkill /f /im qq.exe

[ Last edited by majoy on 2007-8-27 at 10:00 AM ]



You can also look up the PID value
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023