可以用类似的方法稍稍复杂点


@echo off
set file=
for /F %%A in ('dir /B *.phtml') do call :part2 %%A
goto end
:part2
set file=%1
ren %file% %file:~0,-6%.php
:end

所有跟帖: 

thanks, I will try it. -extension~- 给 extension~ 发送悄悄话 (0 bytes) () 06/16/2004 postreply 12:26:31

请您先登陆,再发跟帖!