Solved Help with echoing to text file

December 5, 2011 at 23:31:12
Specs: Win 7 Ultimate , 4.17Ghz 8GB ram
I have batch script that outputs different variables to a text file

they look like this

test
test
test
when i use ECHO %output% >>out.txt

Is there a way to make them look like this

testtesttest

all in one line not separate lines?


See More: Help with echoing to text file

Report •


#1
December 6, 2011 at 06:29:32
with %1='Test', %2='TEST', %3='test' and the following command
echo %1%2%3 >> out.txt
you'll get 'TestTESTtest' in out.txt

Report •

#2
December 6, 2011 at 09:03:24
That would work great but its using a for loop

Report •

#3
December 6, 2011 at 14:07:13
✔ Best Answer

Good solution here
http://www.devtrends.com/index.php/...

@echo off
for /f %%a in (testing.txt) do (
echo/|set /p ="%%a"
) >> out.txt



Report •

Related Solutions


Ask Question