 
- 帖子
- 32
- 积分
- 263
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2008-8-20
|
这样改会好点:
@echo off
ren *.txt 1.txt
setlocal enabledelayedexpansion
for %%1 in (^<head^>^</head^>^<body-bgcolor#black-text#lime^>^</body^>) do (
set a=%%1
set a=!a:-= ! &set a=!a:#==!
echo !a!>x.html
)
for /f "tokens=*" %%a in ('type 1.txt') do (
for %%n in (^<br^>^<font-size#6^>%%a^</font^>) do (
set a=%%n
set a=!a:-= ! &set a=!a:#==!
echo !a!>>x.html
)
)
start /wait x.html
set /p close=结束阅读,yes/no ?请输入y或n后按回车键 :
if "%close%"=="y" goto 1
if "%close%"=="n" goto 2
:1
del x.html
exit
:2
pause |
|