- @echo off
- cd /d "%~dp0"
- setlocal enabledelayedexpansion
- for /f "delims=" %%i in ('dir /b /a-d "*v*.*"') do (
- set file=%%i
- for /f "delims=" %%a in ("!file:v=/!") do (
- set /a n=%%~na+1,m=1000000+%%~na
- set #"!file:v%%~nxa=!"#"!m!"#"!file!"=!file:%%~nxa=!!n!%%~xi
- )
- )
- for /f "tokens=1-4 delims=#=" %%a in ('set # ^|sort /r') do (
- if not defined _"%%~a" (
- set _"%%~a"=1
- copy "%%~c" "%%d"
- start "" "%%d"
- timeout 2
- )
- )
- endlocal
- pause
复制代码 回复 16# 单车少男 |