Tuesday, May 26, 2015

windows 7 - Why does the ping command in my batch file execute in a loop?

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


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 ping.BAT to ping.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.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...