本帖最后由 77七 于 2023-7-25 21:24 编辑
回复 5# 思想之翼
- @echo off
- setlocal enabledelayedexpansion
- split -l 100 D:\DATA\A.txt $-
- for /f "delims=" %%i in ('dir /a-d /b $-*') do (
- set /a n+=1
- ren %%i !n!.txt
- move /-y "!n!.txt" "D:\DATA\"
- )
- pause
复制代码
- @echo off
- setlocal enabledelayedexpansion
- split -l 100 D:\DATA\A.txt $-
- for /f "delims=" %%i in ('dir /a-d /b $-*') do (
- set /a n+=1
- move /-y "%%i" "D:\DATA\!n!.txt"
- )
- pause
复制代码
|