- @echo off
- setlocal enabledelayedexpansion
- for /l %%i in (1,1,40) do set "space=!space! "
- for /f "tokens=1* delims=:" %%a in ('findstr /o .* 1.txt') do (
- if defined num2 (
- set /a "num1=(%%a-!num2!)/2"
- call echo,%%str:~!num1!%%
- )
- set num2=%%a
- set str=!space!%%b
- )
- pause
复制代码
|