windows - Batch Echoing from Lateral to Horizontal -


i have following issue: regular list approximate information:

computer1 dateimplemented computer2 dateimplemented computer3 dateimplemented <this goes on while> 

what want do:

computer1,dateimplemented computer2,dateimplemented <etc> 

i have been trying bunch of ways output is:

computer1 dateimplemented. 

this going 1 of 50-50 scenarios solution stupidly easy or stupidly hard.

thank in advance!

@echo off setlocal enabledelayedexpansion set computer= /f "delims=" %%a in (list.txt) (    if not defined computer (       set "computer=%%a"    ) else (       echo !computer!,%%a       set computer=    ) ) 

as usual, batch flile may modified manage special batch characters, if required.


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -