I have this piece of code:
echo %ip_address%>%logfile%
echo %hostname%>>%logfile%
echo %duration%>>%logfile%
However, I would like to know if it possible to echo each variable on a separate line.
I have tried the following:
echo %ip_address% && %hostname% && %duration%>c:\text.txt
echo %ip_address% & echo.%hostname% & echo.%duration%>c:\text.txt
None of these work.
. – Arthor Mar 27 '15 at 22:21