@echo off
setlocal enabledelayedexpansion

echo Changing .srt files to .txt in the current directory...

for %%f in (*.srt) do (
    ren "%%f" "%%~nf.txt"
    echo Renamed: "%%f" to "%%~nf.txt"
)

echo.
echo All .srt files have been processed.
endlocal
pause