
CODE: [Copy to clipboard]如果要覆盖原文件,在最后加上 move list_url.txt list.txt@echo off
SetLocal EnableDelayedExpansion
set n=
(for /f "tokens=*" %%a in (list.txt) do (
set /a n += 1
echo [url=http://www.abc.com/aa/5/!n!.pdf]%%~na[/url]
))>list_url.txt
| Quote: | |
|
CODE: [Copy to clipboard][ Last edited by Hanyeguxing on 2010-3-8 at 01:53 ]@echo off
(for /f "tokens=*" %%a in (list.txt) do set/a n+=1&call echo [url=http://www.abc.com/aa/5/%%n%%.pdf]%%~na[/url])>list_url.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |