word arrangement in a text file

February 17, 2011 at 04:07:05
Specs: Windows 7
i need a command that let me to arrange words in a text file written like that:
test1
test2
test3
and i wanna them to be arranged like this:
test1;test2;test3
with the addition of the semicolon.....plz help and thanks in advance.

See More: word arrangement in a text file

Report •


#1
February 17, 2011 at 04:24:42
:: ==========================================
::
:: oneline.bat Thu 17-02-2011 19:15:14.52
@echo off > newfile & setLocal enableDELAYedeXpansion

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


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

M2


Report •

#2
February 17, 2011 at 05:30:31
thx man for help.....YOU ROCK

Report •

#3
February 18, 2011 at 00:15:52
so...can you explain this code man??

Report •

Related Solutions

#4
February 18, 2011 at 06:56:28
just put:
echo test1;test2;test3
like that.

My website. Check it out here!


Report •


Ask Question