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
)

 

 

 

◆待續

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章