I've tried this as content of ping.bat:
ping -t 192.168.1.1 > out.txt
It doesn't work. Ctr+C doesn't ask me "Terminate batch job...." like it always does. I have to click x to close the shell. The contents of out.txt is
"Terminate batch job...". I find it weird.
I've also tried ping 192.168.1.1 > out.txt thinking that -t has something to do with it but no joy.
I tried a different command:
tracert yahoo.com > out.txt
netstat > out.txt
Both works fine. Contents of out.txt is as expected. But, the shell doesn't display the output/results of tracert or netstat.
I've ran all batch files from C:\
I want a batch file that pings infinitely 192.168.1.1 and reflects the output to out.txt while still displaying the output on the screen.