用CMD关闭多个窗口

时间:2017-12-01 20:20:10

标签: batch-file cmd window windows-xp taskkill

我一直在研究批处理文件程序,它打开多个窗口,然后同时关闭它们。我可以在Windows 10上使用TASKKILL命令同时关闭它们。我也想在Windows XP Home SP3上使用该程序,但它没有TASKKILL命令。所以我的整体问题是:有没有办法在没有任何第三方软件的情况下通过命令提示符关闭Windows XP上的多个窗口?另外,这是我正在使用的批处理代码:

@echo off
:init
cls
color 0f
title Test A1
start %RandomProgram%
ping localhost -n 10 >nul
start %RandomProgram%
ping localhost -n 10 >nul
start %RandomProgram%
ping localhost -n 10 >nul
start %RandomProgram%
ping localhost -n 10 >nul
start %RandomProgram%
ping localhost -n 15 >nul
::Close all the above windows here::

1 个答案:

答案 0 :(得分:0)

Squashman是对的,

  

Windows XP有TSKILL