PING through batch file (looping problem)
- by pradeetp
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.