input.txt 是TXT 文件名- @echo off
- echo. >demo.bat
- set num=1
- setlocal enabledelayedexpansion
- for /F "eol= tokens=1* delims= " %%i in (input.txt) do (
- echo echo ^^^^^<attachment:%%j^^^^^> ^>^> ~!num!.txt >>demo.bat
- echo echo ^^^^^<to_num:%%i^^^^^> ^>^> ~!num!.txt >>demo.bat
- set /a num+=1
- )
- echo ok
- pause>nul
复制代码
|