Monitor the process and stop the script CMD

Hi,
I want to extract number of pings from the terminal, and I have found it… but the problem is I have to Monitor the process and stop the script “CTRL+C” after the ping has run for number of pings, how do I get stop the monitor according to the number of pings?
note: number of pings is a random value.

for example:
image

Best Regards

@Anggara_Rahmadhani

Pass you ping command as below

ping ipaddress -n x (where x is number of times you need to ping)

Check as below for your reference

Hope this may help you

Thanks

Hi @ksrinu070184
im run from the .bat script fixed, I can’t Enter command
here the bat script
pingScript.zip (231 Bytes)

Best Regards