Help I need to write PING and TRACERT to an output file.
However when I run my Batch file the output is on a single line
cd\
echo This is a comment >> logfile.txt
echo The date today is %date% >> logfile.txt
echo The time now is %time% >> logfile.txt
echo >> logfile.txt
@echo off
ping 155.45.116.250 >> logfile.txt
ping xxx.xx.xxx.123 >> logfile.txt
tracert xxx.xx.xxx.123 >> logfile.txt
tracert xxx.xx.xxx.234 >> logfile.txt
tracert xxx.xx.xxx.234 >> logfile.txt
exit
Does anyone know how to do this.
Any information will be appreciated.