问题描述
任何机构可以告诉我如何停止(少数)选择使用批处理文件(.bat)在Windows 7中运行64位程序/软件?
我的要求很简单:我给自己定的uTorrent和一些下载管理器程序在Windows启动时运行。通常我需要它以这种方式......但有时我需要停止所有那些下载经理uTorrent的一起,以获得互联网浏览速度。现在,我必须关闭所有这些程序由一个手动依次... !!!我想,以方便....如果我可以使用一些命令停止在短短1步这些程序,使用批处理文件,那将是巨大的.... !!!
首先,获得与 TASKLIST
任务列表/网络连接imagename EQ的java.exe
输出:
图片名称的PID会话名会话#内存使用状态
=================== ====== ============= ======== ==== ========
JAVA.EXE 1060 RDP-TCP#8 0 81 408高
使用 TASKKILL< PID>
TASKKILL / PID 1060
,或直接
TASKKILL / F / FIIMAGENAME EQ的java.exe
REF:命令行 <杀进程/ p> Can any body tell me how to stop (few) selected running program/software using batch file (.bat) in windows 7 64bit? My requirement is simple : I've set utorrent and few download manager program to run on windows startup. usually I need it in that way... but sometimes I need to stop all those download managers along with utorrent in order to gain internet browsing speed. Now I have to close all those programs manually one by one...!!! I want to make it easy.... if I can use some commands to stop those programmes in just 1 step, using a batch file, that would be great....!!! FIrst, get the process id with output : the use or directly ref : Kill process from command line 这篇关于如何停止与批处理命令的Windows 7上运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!TASKLIST
tasklist /fi "imagename eq java.exe"
Image Name PID Session Name Session# Mem Usage Status
=================== ====== ============= ======== ============
Java.exe 1060 RDP-Tcp#8 0 81 408 Ko
TASKKILL <pid>
taskkill /pid 1060
taskkill /F /FI "IMAGENAME eq java.exe"