@echo off
for /f "delims=" %%i in ('dir /a-d/b/s *.html') do (
if not "%%i"==%0 ren "%%i" "20221023%%~nxi")
echo 命名完毕
pause
注意新建txt文件 另存为格式为ascii 什么编码 更改后缀名为bat格式
@echo off
for /f "delims=" %%i in ('dir /a-d/b/s *.html') do (
if not "%%i"==%0 ren "%%i" "20221023%%~nxi")
echo 命名完毕
pause
注意新建txt文件 另存为格式为ascii 什么编码 更改后缀名为bat格式