
CODE: [Copy to clipboard]@echo off & Setlocal EnableDelayedExpansion
for /f "tokens=1* delims=:" %%i in ('findstr/n .* a.txt') do (
set num=000000%%i
set num=!num:~-6!
echo.[!num!]%%j
)
pause
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |