@echo off
set str=1893984
set "files=手机号码.excel"
set rows=0
:step
set/a rows+=1
cls & echo 正在处理: %rows%
if %rows% leq 9 echo %str%000%rows%>>%files%
if %rows% geq 10 if %rows% leq 99 echo %str%00%rows%>>%files%
if %rows% geq 100 if %rows% leq 999 echo %str%0%rows%>>%files%
if %rows% geq 1000 echo %str%%rows%>>%files%
if %rows% equ 9999 exit
goto step