- @echo off
- setlocal enabledelayedexpansion
- md a
- set num=1
- :sta
- set /a nu+=1
- set /a m+=1
- set n=0
- for /f "delims=" %%a in (a.txt) do (
- set /a n+=1
- if !n! equ !m! echo %%a>>a\!num!.txt
- )
- if !nu! equ 50 set /a num+=1&set /a nu=0
- if !m! lss !n! goto sta
- pause
复制代码
|