China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-05 16:41
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] How can I use a batch file to end a process View 1,406 Replies 4
Original Poster Posted 2007-08-27 08:24 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
初级用户
Credits 30
Posts 8
Joined 2006-10-24 22:02
19-year member
UID 68087
Gender Male
Status Offline
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
Floor 2 Posted 2007-08-27 08:38 ·  日本 FUJITSU公司
初级用户
Credits 43
Posts 19
Joined 2007-08-19 08:47
18-year member
UID 95320
Gender Male
Status Offline
Use taskkill, for the detailed method go search Google
Floor 3 Posted 2007-08-27 09:45 ·  中国 四川 成都 电信
新手上路
Credits 10
Posts 4
Joined 2006-08-19 21:54
19-year member
UID 60883
Status Offline
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 ]
Floor 4 Posted 2007-08-27 20:51 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
初级用户
Credits 30
Posts 8
Joined 2006-10-24 22:02
19-year member
UID 68087
Gender Male
Status Offline
Many thanks
Floor 5 Posted 2007-08-27 23:25 ·  中国 云南 西双版纳傣族自治州 电信
初级用户
★★
Credits 100
Posts 52
Joined 2006-03-02 15:06
20-year member
UID 51231
From 云南
Status Offline
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
Forum Jump: