?
Solved

Ping Batch File

Posted on 2013-06-25
3
Medium Priority
?
394 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 40

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 40

Expert Comment

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

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

801 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