帮忙看看怎么改
@ECHO OFF
COLOR 0a
set tmpFilePath=%temp%\tmp.lst
del "%tmpFilePath%" /q 1>nul 2>nul
set inputDir=%~dp1
echo 正在搜索文件,请稍候...
dir "%inputDir%*.jpg" /s /a /b>>"%tmpFilePath%"
FOR /F "tokens=*" %%a IN (
'more "%tmpFilePath%"'
) DO (
echo 正在将文件%%a重命名 *.pdg
ren "%%a" *.pdg
)
del "%tmpFilePath%" /q 1>nul 2>nul
PAUSE