findstr /v /i /n "fff" 视频网址.txt >>2.txt
rem 读取上次转换第几行
for /F "tokens=1* delims=:" %%a in ('type nowdownload.ini') do set nowdownload=%%a
for /f "tokens=1* delims=:" %%a in (2.txt) do SET MAXURL=%%a
if %MAXURL% LSS %nowdownload% goto :finish
if %nowdownload% LSS 10 goto :small
rem 提取指定行
findstr /i "%nowdownload%:" 2.txt >>b.txt
set /a nowdownload=%nowdownload%+1
echo %nowdownload% >nowdownload.ini
for /F "tokens=1* delims= " %%a in ('type nowdownload.ini') do echo %%a>nowdownload.ini
rem 去除行号
for /F "tokens=1* delims=:" %%a in ('type b.txt') do echo %%b>当前处理网址.txt
goto :end
:small
rem 去处10行以下的文本
for /f "tokens=1* delims=:" %%a in (2.txt) do if %%a LSS 10 echo %%a:%%b>>a.txt
rem 提取指定行
findstr /i "%nowdownload%:" a.txt >>3.txt
set /a nowdownload=%nowdownload%+1
echo %nowdownload% >nowdownload.ini
for /F "tokens=1* delims= " %%a in ('type nowdownload.ini') do echo %%a>nowdownload.ini
rem 去除行号
for /F "tokens=1* delims=:" %%a in ('type 3.txt') do echo %%b>当前处理网址.txt
:end
del 1.txt
del 2.txt
del 3.txt
del a.txt
del b.txt
exit
:finish
echo 0 >nowdownload.ini
for /F "tokens=1* delims= " %%a in ('type nowdownload.ini') do echo %%a>nowdownload.ini
del 1.txt
del 2.txt
----------------------------------------------
nowdownload.ini里保存当前的行数
支持1-99行 自己写的脚本
rem 读取上次转换第几行
for /F "tokens=1* delims=:" %%a in ('type nowdownload.ini') do set nowdownload=%%a
for /f "tokens=1* delims=:" %%a in (2.txt) do SET MAXURL=%%a
if %MAXURL% LSS %nowdownload% goto :finish
if %nowdownload% LSS 10 goto :small
rem 提取指定行
findstr /i "%nowdownload%:" 2.txt >>b.txt
set /a nowdownload=%nowdownload%+1
echo %nowdownload% >nowdownload.ini
for /F "tokens=1* delims= " %%a in ('type nowdownload.ini') do echo %%a>nowdownload.ini
rem 去除行号
for /F "tokens=1* delims=:" %%a in ('type b.txt') do echo %%b>当前处理网址.txt
goto :end
:small
rem 去处10行以下的文本
for /f "tokens=1* delims=:" %%a in (2.txt) do if %%a LSS 10 echo %%a:%%b>>a.txt
rem 提取指定行
findstr /i "%nowdownload%:" a.txt >>3.txt
set /a nowdownload=%nowdownload%+1
echo %nowdownload% >nowdownload.ini
for /F "tokens=1* delims= " %%a in ('type nowdownload.ini') do echo %%a>nowdownload.ini
rem 去除行号
for /F "tokens=1* delims=:" %%a in ('type 3.txt') do echo %%b>当前处理网址.txt
:end
del 1.txt
del 2.txt
del 3.txt
del a.txt
del b.txt
exit
:finish
echo 0 >nowdownload.ini
for /F "tokens=1* delims= " %%a in ('type nowdownload.ini') do echo %%a>nowdownload.ini
del 1.txt
del 2.txt
----------------------------------------------
nowdownload.ini里保存当前的行数
支持1-99行 自己写的脚本
