本帖最后由 77七 于 2023-11-4 16:02 编辑
- @echo off&&setlocal enabledelayedexpansion
- set m=10
- for /f "delims=" %%g in (list.txt) do (
- start "mark" %%g
- set /a m-=1
- if !m! equ 0 (
- set m=10
- call :1
- )
- )
- pause & exit
-
- :1
- for /f %%a in ('tasklist /fi "WINDOWTITLE eq mark" ^|find /c "cmd.exe"') do (
- if %%a equ 0 (
- exit /b
- ) else (
- timeout 2 >nul
- goto :1
- )
- )
复制代码
|