本帖最后由 qixiaobin0715 于 2021-7-22 07:16 编辑
A2A3A4一次互换:- @echo off
- setlocal enabledelayedexpansion
- for %%i in (*候补*.mp4) do (
- set /a n+=1
- set #!random!=%%i
- )
- set /a n-=3
- set m=1
- for /f "skip=%n% tokens=2 delims==" %%a in ('set #') do (
- set /a m+=1
- ren "A!m!.mp4" "tmp"
- ren "%%a" "A!m!.mp4"
- ren "tmp" "%%a"
- )
- pause
复制代码
|