Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Ping Batch File

Posted on 2013-06-25
3
Medium Priority
?
401 Views
Last Modified: 2013-07-17
I need to create a script which will output the data to one file ...  

I need to run ping -t -n 25 -l 100 192.168.14.253   ......   I need to run this for packet sizes
100, 500, 1000, 1600, 2000   ......  

Is there anyone that has a vb or windows script to acheive this .......

Thanks ....

Joel
0
Comment
Question by:jtbrown1111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
Kyle Abrahams earned 2000 total points
ID: 39276417
This is a start:

launch.bat
===========================
start test.bat 100
start test.bat 500
start test.bat 1000


test.bat
=====================================
ping -t -n 25 -l %1  192.168.14.253  >> %1.log


Unfortunately it fails when you try to write to the same log.  Can you write to multiple logs?
Perhaps add a timestamp and merge them later?
0
 

Author Comment

by:jtbrown1111
ID: 39276461
what I came up with is

for %a in (500, 750, 1000, 1600, 2000) do ping -t -n 5 -l %a 192.168.14.253 > >c:\ping.txt

seems to work fine if I create a blank file first ...... ..........        Thanks everyone
0
 
LVL 41

Expert Comment

by:Kyle Abrahams
ID: 39278170
confirm that you get the 750 and 1000 values?
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question