
CODE: [Copy to clipboard][ Last edited by zw19750516 on 2008-4-27 at 09:37 PM ]@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%i in ('type 1.txt') do (
set /a n+=1
for %%a in (%%i) do (
if not defined %%a (
set %%a=A
if !n! equ 1 (
echo %%a>1.txt
) else (
echo %%a>>1.txt
)
)
)
)
pause>nul
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |