@echo off %mode con {s11ss 2007-12-11}%
set/a c=14,l=2
ping -n 1 0 >nul
call :c " " "::" 0
call :c "::" " " 1 "The max value of "lines" is 40,please be patient!"
set/a c=14,l=2
call :c " " " " 0
echo Press any key to exit...
pause>nul
exit/b
:c
mode con cols=%c% lines=%l%
title mode con cols=%c% lines=%l% cols: lines: %~4
for /l %%a in (1,1,%3) do ping -n 1 0 >nul
%~1 set/a c+=2
%~2 set/a l+=1
%~1 if %c% geq 100 goto :eof
%~2 if %l% gtr 40 goto :eof
goto :c