PING through batch file (looping problem)

Posted by pradeetp on Super User See other posts from Super User or by pradeetp
Published on 2011-06-18T03:42:05Z Indexed on 2013/07/01 16:24 UTC
Read the original article Hit count: 111

Filed under:

I created a .BAT file in Windows 7 that has the following lines:

PING XXX.XXX.XXX.XXX -t

(XXX replaces the actual IP number). However, when I double click on this batch file, I can see the PING command repeatedly being executed in a loop. I even tried to rename the .BAT to .CMD but the result is the same.

I want to avoid writing PING command through the Command Prompt, which is why I created the batch file. I don't know why the PING command is being continuously called when the same statement is put in a batch file.

© Super User or respective owner

Related posts about windows-7