帮忙看一下,怎么这个BAT执行不了。
set path1=d:\凡人修仙传.txt
set /p hang1=
set /a hang1=%hang1%-1
for /f "skip=%hang1% delims=: tokens=1,2*" %%a in ('findstr /n ".*" %path1%') do echo %%b >>更新.txt
[ Last edited by yqadsq1314 on 2009-9-4 at 13:22 ]
set path1=d:\凡人修仙传.txt
set /p hang1=
set /a hang1=%hang1%-1
if %hang1% lss 1 (
for /f "delims=: tokens=1,2*" %%a in ('findstr /n ".*" %path1%') do echo %%b
) else (
for /f "skip=%hang1% delims=: tokens=1,2*" %%a in ('findstr /n ".*" %path1%') do echo %%b
>>更新.txt
[ Last edited by Hanyeguxing on 2009-9-4 at 05:57 ]