1.

Solve : How to insert a carriage return?

Answer»

I'm trying to merge a lot of archives in one, with WinXP - CMD

With copy *.txt /O myfile.sal

My problem is I have 2 files, a1.txt and a2.txt
a1.txt
1
2
3

a2.txt
a
b
c

The result is
1
2
3a
b
c

I need to insert a carriage RETURN between 3 and a
Is it possible?

Thanks

Luisthis MAY work:
Code: [Select]for /f %%a in ('dir /B *.txt') do (
type %%a >>myfile.sal
echo.>>myfile.sal
)

Perfect!

THANK yo so much!

Luis



Discussion

No Comment Found