1
Via file . bat, if you just pass ping [host]
, it will run infinitely even. You need to pass the parameter -n
and the number of times you want to ping.
For example, the command below saved in a bat will "drip" google for 6 times and close:
ping -n 6 www.google.com
In the documentation there is a list of parameters if you want to increment the command.
Add how you’re passing the command to your bat file.
– user28595