
CODE: [Copy to clipboard][ Last edited by tireless on 2009-4-30 at 03:22 ]@echo off&setlocal enabledelayedexpansion
set "file=d:\test\a.txt"
(for /f "usebackq delims=" %%a in ("%file%") do (
if "%%a" geq "本题正确答案:a" (
set /a n+=1
echo ^<a href="DA!n!.htm"^>正确答案^</a^>^</br^>
) else echo %%a
))>_new.txt
start _new.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |