windows rename command to rename file.a.b to file.b
ren *.htm *.
will change all .asp.htm to just .asp
for /f "delims=." %f in ('dir /b *.htm') do @ren "%~f.asp.htm" "%~f.htm"
will change all .asp.htm to just .htm
ren *.htm *.
will change all .asp.htm to just .asp
for /f "delims=." %f in ('dir /b *.htm') do @ren "%~f.asp.htm" "%~f.htm"
will change all .asp.htm to just .htm