Search found 1 match
- 21 Feb 2020 00:46
- Forum: DOS Batch Forum
- Topic: How to print to first line of txt file?
- Replies: 2
- Views: 6346
How to print to first line of txt file?
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...