How to print to first line of txt file?
Posted: 21 Feb 2020 00:46
I trying to make an small ping log to check when the IP isn't reachable but only issue is that all info goes down to the bottom of the file. Is it possible to print it to the top?
My script so far:
@ECHO OFF
:LOOPSTART
date /T>> PingLog.txt
time /T >> PingLog.txt
ping 192.168.0.2 -n 4 >> PingLog.txt
TIMEOUT 10
GOTO LOOPSTART
My script so far:
@ECHO OFF
:LOOPSTART
date /T>> PingLog.txt
time /T >> PingLog.txt
ping 192.168.0.2 -n 4 >> PingLog.txt
TIMEOUT 10
GOTO LOOPSTART