本帖最后由 smatenchen 于 2022-11-13 09:31 编辑
回复 31# qixiaobin0715 terse BAT221110 hfxiang idwma Batcher
| @echo off | | (for /f "delims=" %%i in (1.txt) do ( | | if "%%i"=="[333]" set n= | | if not defined n echo,%%i | | if "%%i"=="[222]" set n=true | | ))>temp.log | | move temp.log 1.txt | | COPY |
| if "%%~a"=="[333]" set /a b=1 | | | | if !b! EQU 1 echo;%%a | | | | if "%%~a"=="[222]" set /a b=0COPY |
1,
非常感谢!
2,
哦!好主意!
那是,插入代码功能。
有需要时,的确是应该使用它的,以方便复制代码。
3,
感谢大神们帮忙!
非常感谢! |