Batch to append text to each line of a txt

Dell / OPTIPLEX
May 7, 2009 at 07:58:12
Specs: Windows XP pro, P4/512
I need to append a fixed text string to the beginning of each line of a text file like this.
The first file is a dir list of filenames generated with dir /a:-d/b/o:n>list.txt I then want to add www.mysite.com\ before the data already on each line so I get.

www.mysite.com\1234.mp3
etc.
I then need to add it to another txt but I can do that. TIA


See More: Batch to append text to each line of a txt

Report •


#1
May 7, 2009 at 09:17:26
for /F "delims=" %%j in (list.txt) do echo.www.mysite.com\%%j >> ListNew.txt


Report •

#2
May 8, 2009 at 09:54:53
sweet thank you I was using a much more complex method that didnt work anyway. Thanks again.

Report •

Related Solutions


Ask Question