这是个死循环,中断以后发现3.txt每一行前面都一样,但是后面都会多出若干个空格,有没有什么办法能让每一行都严格相等啊?复制代码
- @echo off
- setlocal enabledelayedexpansion
- echo aaaa>>3.txt
- :t1
- for /f "tokens=*" %%i in (3.txt) do ( set nn=%%i
- echo !nn!>>3.txt )
- goto t1
- pause
- exit
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |