第1个回答 2018-11-16
@echo off
set @=q&set/an=0x53b7e0b4
title +%@%%@% %n%
cd /d "%~dp0"
for /f "delims=" %%a in ('dir /a-d/b^|findstr /levc:"%~nx0"') do (
set "f=%%a"
set "fn=%%~nxa"
setlocal enabledelayedexpansion
echo;"!f!" --^> "指定前缀字符串!fn!"
ren "!f!" "指定前缀字符串!fn!"
endlocal
)
pause本回答被网友采纳