批量重命名的batch
把h:\abc下所有的文件加一个.rmvb的后缀
set target_dir=H:\abc
@echo off
setlocal EnableDelayedExpansion
cd %target_dir%
echo %target_dir%
for /f "delims=" %%i in ('dir /b /a-D %target_dir%') do (
ren %%i %%i.rmvb
)
echo done!
pause
把h:\abc下所有的文件加一个.rmvb的后缀
set target_dir=H:\abc
@echo off
setlocal EnableDelayedExpansion
cd %target_dir%
echo %target_dir%
for /f "delims=" %%i in ('dir /b /a-D %target_dir%') do (
ren %%i %%i.rmvb
)
echo done!
pause