- @Echo off&SetLocal EnableDelayedExpansion&set n=100
- for /f "tokens=1,2 delims=," %%a in (page.txt)do set /a n+=1&(Echo # 开始页&Echo start_page = %%a&Echo # 截止页&Echo end_page = %%b&Echo outputStream = open^("output-!n:~-2!.pdf", "wb"^))>pdf!n:~-2!.txt
- pause
复制代码
|