My first powershell


A foreach loop that calls ping with a specific buffer size, and sends output to a ping*.txt file corresponding to the buffer size:

foreach ($number in 32, 256, 1024) { ping -n100 -l$number yahoo.com > ping$number.txt }


Leave a Reply

%d bloggers like this: