Batch Create Line From Many Lines

March 21, 2011 at 02:57:33
Specs: Windows xp
Hello,
I'm with problems in doing a batch for create a line from many lines in a text file. example:
in the file1.txt i have:
hello
2011
food
and i want in the file2.txt:
hello:2011:food
can you help me?
thanks

See More: Batch Create Line From Many Lines

Report •

#1
March 21, 2011 at 04:57:19
:: ==========================================
::
:: tibado.bat Mon 21-03-2011 18:54:00.10
@echo off > newfile & setLocal enableDELAYedeXpansioN

for /f "tokens=* delims= " %%a in (myfile) do (
set S=!S!%%a:
)
> newfile echo.!S!


=====================================
Life is too important to be taken seriously.

M2


Report •
Related Solutions


Ask Question