d6x3814 当前离线
列兵
ShowCode 当前离线
VIP1
评分人数
TOP
pcl_test 当前离线
荣誉版主
3 12 4 cls&echo off (for /f "delims=" %%i in ('dir /b /a-d ^| find "SKMBT"') do ( set /p n= rem 无误去掉下句的echo call echo ren "%%i" "%%n%%%%~xi" ))<"%~f0" pause复制代码
@echo off setlocal enabledelayedexpansion set n=1 for /f "delims=" %%i in ('dir /b /a-d ^| findstr "SKMBT"') do ( if !n! equ 1 ( ren "%%i" "3%%~xi" ) else if !n! equ 2 ( ren "%%i" "12%%~xi" ) else if !n! equ 3 ( ren "%%i" "4%%~xi" ) set /a n+=1 )复制代码
bbaa 当前离线
四级士官