- @echo off
- set filenum=100
- for /l %%x in (1001,1,1210) do (
- set y=%%x
- setlocal enabledelayedexpansion
- for /l %%a in (1,1,%filenum%) do (
- for /f "delims=" %%i in (C:\湿度\!y:~1!\地点\%%a.txt) do (
- set /a n+=1
- for %%a in (!n!) do set "#%%a=!#%%a! %%i"
- )
- set /a m=n,n=0
- )
- (for /l %%a in (1,1,!m!) do echo,!#%%a:~1!)>C:\湿度-文件1\!y:~1!.txt
- endlocal
- )
复制代码 这样试试 |