
CODE: [Copy to clipboard]setlocal EnableDelayedExpansion
for /f %%a in (file.txt) do (
set xxx=%%~a
set xxx=!xxx:,= !
for %%i in (!xxx!) do (
set xxx=%%i
set /p=!xxx:~0,2!,<nul >> k.txt
)
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |