[英]close multiple cmd window using batch file in windows 7 pro.
When I run a batch file for /l %%x in (1,1,270) do ( start "" java -cp ... Client)
in cmd 270 window will open. 当我
for /l %%x in (1,1,270) do ( start "" java -cp ... Client)
运行批处理文件时for /l %%x in (1,1,270) do ( start "" java -cp ... Client)
将打开cmd 270窗口中的for /l %%x in (1,1,270) do ( start "" java -cp ... Client)
。 These all windows are individual I just want to close all these window by using another batch file... 这些所有窗口都是单独的,我只想使用另一个批处理文件来关闭所有这些窗口...
I am using windows 7 prof. 我正在使用Windows 7教授。
I tried the taskbar property combine, it does not work. 我尝试了taskbar属性组合,它不起作用。 i want close these all java window using batchfile
我想使用批处理文件关闭所有这些Java窗口
Thanks for your help
谢谢你的帮助
You can use taskkill
provided that all the java processes are named the same thing, lets say java.exe
for this 您可以使用
taskkill
只要所有的Java进程都具有相同的名称,那么可以说java.exe
taskkill /im java.exe /f
which will close all the windows named java.exe
. 这将关闭所有名为
java.exe
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.