1.批量复制
@echo off
:: s1:源路径 t1:目标文件
setlocal enabledelayedexpansion
set s1=D:\ascript\jjagent
set t1=E:\lcoal_jlicht
set t2[0]=jlicht1\jjagent
set t2[1]=jlicht2\jjagent
set t2[2]=jlicht3\jjagent
set t2[3]=jlicht4\jjagent
for /l %%i in (0,1,3) do (
copy %s1% %t1%\!t2[%%i]!
::xcopy /e /h /c /y /exclude:D:\ascript\uncopy.txt %s1% %t1%\!t2[%%i]!\%target%
)
pause
2.批量打开
@echo off
:: s1:源路径 t1:目标文件
setlocal enabledelayedexpansion
set t1=E:\out_jlicht
set t2[0]=jlicht1
set t2[1]=jlicht2
set t2[2]=jlicht3
set t2[3]=jlicht4
for /l %%i in (0,1,3) do (
start /d %t1%\!t2[%%i]! jlicht_player.exe
)
pause