ww0000 当前离线
三级士官
@echo off setlocal EnableDelayedExpansion for /f "delims=" %%a in ('dir/b/ad') do ( set a=1 for /f "delims=" %%i in ('dir/b/a-d "%%~na\*.*"') do ( ren "%%~na\%%~nxi" "%%~na!a!%%~xi" set /a a+=1 ))复制代码
terse 当前离线
中将
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir/b/ad') do ( set name= for /f "delims=" %%i in ('dir/b/a-d "%%~na\*.*"') do ( if "!name!" == "" set name=%%~ni ) ren "%%a" "!name!" ) pause复制代码
评分人数
TOP