如何使用DOS命令实现批量文件重命名?

2024-11-23 07:49:14
推荐回答(1个)
回答1:

@echo off
for /f "delims=" %%i in ('dir /s/b/a-d') do (
set "var=%%~nxi"
call,ren "%%i" "abc-%%var%%"
)
exit