not tested... @echo off & setlocal enabledelayedexpansion set .sy_=sys set .dl_=dll set .vx_=vxd set .bi_=bin set .ex_=exe set .dr_=drv set .co_=com for %%a in (*.??_) do ( set ext=%%~xa set name=%%a set base=%%~na call :aa ) goto :eof :aa expand %name% %base%.!%ext%!
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.