rem Test with:
for /f "delims==" %%F in ('dir /b /s *.vir') do echo %%F
rem and then
for /f "delims==" %%F in ('dir /b /s *.vir') do copy "%%~nxF" "%%~nF"
rem ren might misfire when two folders are involved for source and
rem destination
rem do a: ren /?
rem if the copy works, then del source file
sorry, but i really dont know anything about batch files. i managed to put this together from reading forums. the only test i have written is the one u see.
for /f "delims==" %%F in ('dir /b /s *.vir') do echo %%F
for /f "delims==" %%F in ('dir /b /s *.vir') do copy "%%~nxF" "%%~nF"
is this the only text that is needed in the batch file or am i missing something
update: well the second line of code worked. but it still only changed the file extensions in the current folder the .bat file was in and not the included subfolders. so its basically my original code but it now makes a copy with the .vir gone.