
| Quote: | |
|
CODE: [Copy to clipboard]@echo off
rem 取得最后一行的行号:
for /F "tokens=1 delims=:" %%a in ('findstr /n . a.txt') do set totalnum=%%a
(for /f "tokens=1-3 delims=: " %%a in ('findstr /n . a.txt') do (
if %%a equ %totalnum% (echo %%b %%c) else (echo %%b %%c,)
))>b.txt
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |