【发布时间】:2012-12-14 22:30:36
【问题描述】:
首先感谢您的关注。
我需要批处理脚本将<li> 添加到文本文件的所有行的开头和结尾
我用。
@echo off
set h=<l>
setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%a in (input.txt) do (
set /a N+=1
echo %h%^%%a^a>>output.txt
)
但它仅在 h=any text 时有效;
当h=<li>它
不工作!
请帮我。
谢谢
【问题讨论】:
标签: text batch-file add