本帖最后由 sishentibu 于 2016-3-5 19:49 编辑
回复 13# 172788876
把你的文档转码下就可以读取了、
我自己用代码运行完了后,发现好多的干扰项
按我的理解,你想要的是类似需要的,然后序号末尾是0的项吧?
然后我又加了个判断 | @echo off | | echo.>3.txt | | setlocal enabledelayedexpansion | | for /f "delims=;" %%i in (1.txt) do ( | | set a=%%i | | set b=!a:~3,1! | | set c=!a:~4,1! | | set d=!a:~5,1! | | if !b!==0 (if !c!==^ echo !a!>>3.txt) | | if !c!==0 (if !d!==^ echo !a!>>3.txt))COPY |
http://pan.baidu.com/s/1bogixm3 |