In one text file I have this lines:
2014-10-09 00:00:00.000;1663;2014-10-09 12:38:46.000;A;"
";0;0;E/272
2014-10-09 00:00:00.000;1663;2014-10-09 12:38:46.000;A;"
";0;0;D/275
I need using a DOS batch file this new output:
2014-10-09 00:00:00.000;1663;2014-10-09 12:38:46.000;A;"";0;0;E/272
2014-10-09 00:00:00.000;1663;2014-10-09 12:38:46.000;A;"";0;0;D/275
And I have tried this solution:
for /f "delims=" %%a in (oldfile.txt) do (
echo/|set /p ="%%a%"
)>>newfile.txt
But the output is wrong, I don't have two lines in txt newfile but only one line:
2014-10-09 00:00:00.000;1663;2014-10-09 12:38:46.000;A;"";0;0;E/2722014-10-09 00:00:00.000;1663;2014-10-09 12:38:46.000;A;"";0;0;D/275
What am I missing?
What's wrong with this code?
Thank you in advance.