简体   繁体   English

如何从Windows 7任务栏单击关闭多个命令行窗口?

[英]How to close numerous command line windows in a single click from Windows 7 taskbar?

I am running a Java program that connect 1000 clients to a server at a time, in command prompt. 我正在运行一个Java程序,在命令提示符下一次将1000个客户端连接到服务器。 For each client a command line window will open. 对于每个客户端,将打开命令行窗口。

How do I close each individual 1000 more windows from taskbar at a time? 如何一次从任务栏关闭每个1000个窗口?

Is there any method in Windows 7 to close a bulk of windows. Windows 7中是否有任何方法可以关闭大量窗口。 (It is not a running process the window is appear after finished its run so we cannot close it from task manager) (这不是一个运行过程,窗口在完成运行后出现,所以我们无法从任务管理器关闭它)

If anybody can please help me, thanks in advance. 如果有人可以帮助我,请提前感谢。

您可以使用taskkill /f /im java.exe (或javaw.exetaskkill /f /im java.exe该程序。

If the windows all are piled up under a single command prompt icon on the task bar, you can right click on the icon and select "Close all windows". 如果窗口全部堆叠在任务栏上的单个命令提示符图标下,则可以右键单击该图标并选择“关闭所有窗口”。

But seriously, 1,000 windows? 但严重的是,1000个窗户? You need to redesign that program. 你需要重新设计该程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM