Quote (CyberGod @ Mar 20 2018 07:37am)
@echo off&setlocal
set "logfile=sample.txt"
(
tracert google.com
ping -n 120 google.com
)>"%logfile%"
type "%logfile%"
Thanks!
Quote (labatymo @ Mar 20 2018 08:39am)
just use '>>' instead of '>'
Tried that, it didn't work. :/