I am new here and to batch scripting, trying to learn.
I have a batch that adds an extension to each string in a text file but what I have right now, it leaves a space before the extension.
@echo off set addtext=.mp4 for /f "delims=*" %%a in (list.txt) do (echo(%%a%%a%addtext%)>>new_list.txt
Any help is much Apppreciated!
To remove trailing white spaces I used a helper batch called JREPL.BAT and this command in another batch file
call jrepl " +$" "" /f list.txt /o -
Thank You for the Help!