::在url.txt文件的每行前面和后面增加指定内容
@echo off
set before=Urls = Urls & "
set after=,"
for /f "delims=" %%i in (url.txt) do (
if "%%i"=="" (
echo.>>2.txt
) else (
echo %before%%%i%after%>>temp.txt
)
)
del url.txt
ren temp.txt url.txt
pause
问题:普通字符这个批处理没有问题。如下,当碰到特殊字符就搞不成了,用^也不行,高手帮忙看看,谢谢
set before=Urls = Urls & "
set after=,"作者: wc726842270 时间: 2011-2-25 23:21 标题: 回复 1楼 的帖子