setlocal enabledelayedexpansion
set e=0
for /l %%i in (1,1,%i%) do (
set /a e+=1
echo !e!
echo echo off > \1avi\%j%\!e!.bat
echo this is a test >> \1avi\%j%\!e!.bat
start \1avi\%j%\!e!.bat
)
不管是set /a e+=1 还是set /a e=!e!+1都不生效
还有 set /p =this is a test <nul >>a.bat这行为什么这么写呢?
另外,批量合并文件 我想到用sed来完成 用echo this is a test >a.bat
然后用sed做同行编辑。最后用start启动批处理。
不知道这个方法可行不?
有什么需要注意的地方?