Window科普 常用Batch命令 (三)

◆FOR 例子1

@echo off
FOR /L %%a IN (11111 1 11211) DO (
    echo %%a
    copy 11111_10.txt %%a_10.txt
)

 

◆FOR 例子2

FOR %%i IN (  
  1.txt  
  2.txt  
  3.txt  
  4.txt  
  5.txt  
) DO (
  copy /b all.txt+%%i+split.txt all.txt
)

 

 

 

◆待续

 

 

 

 

 

你可能感兴趣的:(windows,batch)