Используйте FOR /L
In FOR /?
FOR /L %variable IN (start,step,end) DO command [command-parameters]
The set is a sequence of numbers from start to end, by step amount.
So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would
generate the sequence (5 4 3 2 1)
Если вы хотите сделать
COPY test.PRN \\Desktop\Xerox_WorkCentre_5024
timeout 300 /NOBREAK
25 раз, в пакетном файле вы можете сделать это:
@echo off
FOR /L %%I in (1,1,25) do (
COPY test.PRN \\Desktop\Xerox_WorkCentre_5024
timeout 300 /NOBREAK
)