1.Copy and paste. 2. add to beginning... @echo off setlocal set addtext=copy for /f "delims=" %%a in (dir.txt) do (echo/|set /p =%addtext%%%a & echo\ & echo\) >>new.txt 3. add to end.. @echo off setlocal set addtext= destination for /f "delims=" %%a in (new.txt) do (echo/|set /p =%%a%addtext% & echo\ & echo\) >>finish.txt
2 and 3 were posted here on cnet some time ago by someone else. Credit for 2 and 3 belongs elsewhere.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.