批量修改.php to .html
@echo off
for /f "delims=" %%a in (‘dir /a-d /s /b’) do (
if "%%~xa" == ".php" ren "%%~fsa" "%%~na.html")
Windows
批量修改.php to .html
@echo off
for /f "delims=" %%a in (‘dir /a-d /s /b’) do (
if "%%~xa" == ".php" ren "%%~fsa" "%%~na.html")