I have subtitle files (.srt). I want to add some texts to beginning and ending of these files. They all are not in same folder. So it must effect to subfolders files,too. Is there a batch code or any other way to do this?
EDIT : This codes helped me to add text to beginning of files. How can I change it for adding to ending of files?
@echo off
for /r %%a in (*.srt) do (
echo 'text' > "%%a.tmp"
type "%%a" >> "%%a.tmp"
del "%%a"
move "%%a.tmp" "%%a"
)