我一直在研究批处理文件程序,它打开多个窗口,然后同时关闭它们。我可以在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::