huangmo 当前离线
列兵
qixiaobin0715 当前在线
大校
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir /b /s /a-d *.txt') do ( set "str=%%~pnxa" ren "%%a" "!str:\=!" ) pause复制代码
TOP
idwma 当前离线
少校
@echo off & setlocal EnableDelayedExpansion for /f "delims=" %%i in ('"dir /a-d/s/b/on *.*"') do ( set "file=%%~fi" set "file=!file/=!" ren "%%~fi" "!file::=!" )复制代码