@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作者: aloha20200628 时间: 2021-10-27 13:43