编码全部ansi
运行后会生成新文件OO.txt- @echo off&chcp 936
- (
- for /f "eol=? delims=" %%a in (00.txt) do (
- set "line=%%a"
- setlocal enabledelayedexpansion
- set line=《!line:*《=!
- for /f "tokens=1 delims=》" %%b in ("!line!") do (
- endlocal
- set "line=%%b》"
- )
- if "!nil!" == "%nil%" endlocal
- setlocal enabledelayedexpansion
- echo:!line!
- endlocal
- ))>>OO.txt
- echo done!!!
- pause&exit/b
复制代码
|