- 帖子
- 349
- 积分
- 508
- 技术
- 33
- 捐助
- 0
- 注册时间
- 2021-6-19
|
3楼
发表于 2021-10-24 18:02
| 只看该作者
回复 2# yakeyun
代码自测
@echo off
@cd/d "%~dp0"
setlocal enabledelayedexpansion
for /f "delims=, " %%a in ('type a.txt') do echo %%a >.\aa.txt
for /f "tokens=1-3 delims=, " %%b in ('type aa.txt') do (
set bbb=%%b
set ccc=%%c
set ddd=%%d
)
(for /f %%i in ('type b.html') do (
set "aba=group.png"
set "abb=""
set "abc=></a>"
set "abd=</SPAN>"
echo !aba!!abb!!abc!!bbb!!abd!
)) >>.\c.html
if exit b.html (del b.html & ren c.html b.html)
if exit aa.txt (del aa.txt)
exit |
|