- @echo off & setlocal enabledelayedexpansion
-
- for /f "delims=" %%i in (1.txt) do (
- set line=%%i
- if "!line:~,1!"=="=" (
- set n=1
- if defined pline (
- echo;!pline:,= !& set "pline="
- )
- ) else if defined n (
- set "n=" & set "pline=%%i"
- ) else set pline=!pline! %%i
-
- )
- pause & exit /b
复制代码
|