82 字
1 分钟
CMD Script
FOR /L %variable IN (start,step,end) DO command [command-parameters]
The set is a sequence of numbers from start to end, counting by the amount of step. 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)
To concatenate binary files, use copy /b 1.txt+2.txt 1.txt
For example, if 1.txt contains abc and 2.txt contains def, after running the command, the content of 1.txt becomes abcdef
for /l %i in (1,1,36) do (copy /b a.ts+seg-%i-v1-a1.ts>> a.ts)