@echo off&setlocal enabledelayedexpansion
set n=600001
:loop
for /f "delims=" %%i in (457003.out) do (
set a=%%i
call set a=%%a:test1=!n!%%
>>!n!.out echo !a!
)
set /a n+=1
if !n! lss 600101 call:loop !n!
[ Last edited by BaseCoder on 2009-1-23 at 11:12 ]
刚才修改一下程序:
@echo off&setlocal enabledelayedexpansion
set n=00620001
:loop
for /f "delims=" %%i in (00490146.out) do (
set a=%%i
call set a=%%a:test1=!n!%%
>>!n!.out echo !a!
)
set /a n+=1
if !n! lss 00620101 call:loop !n!
我调整了一下程序:
@echo off&setlocal enabledelayedexpansion
set n=620001
:loop
for /f "delims=" %%i in (00490146.out) do (
set a=%%i
call set a=%%a:test1=00!n!%%
>>00!n!.out echo !a!
)
set /a n+=1
if !n! lss 620101 call:loop !n!