我想讓這個指令循環 30 秒,然後說完成:
@Echo off
pause
Title Matrix
Color 0A
:top
Echo %Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%
(not loop the pause, just the %random%)
答案1
這可能有效
@echo off
set looptime=30
set /a "T1=(%time:~6,2% + %looptime% ) %% 60"
:loop
Echo %Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%Random%%
set T2=%time:~6,2%
if not %T1% == %T2% goto loop
:: continue with whatever