PDA

View Full Version : Batch File Help Please!


Adrynalyne
06-08-04, 19:59
I'm having trouble creating a batch file that needs to execute both of these commands:

ping 216.183.67.126 -l 1472 -n 50 > C:\tests\tower.txt
ping 216.183.68.110 -l 1472 -n 50 > C:\tests\dns.txt

Any suggestions?

Adrynalyne
06-08-04, 20:04
Specifically, I need to ping 216.183.67.126 50 times with 1472 byte packets.

I need the results to output to tower.txt.

Also

I need to ping 216.183.68.110 50 times with 1472 byte packets.

I need the results to output to dns.txt.

These work when run from cmd.exe, btw.

Adrynalyne
06-08-04, 20:08
Nevermind, Goldfish helped me :D

goldfish
06-08-04, 21:25
Too late, suckerz!

Tell ya what, ill post the files contents becaus im nice like that :p

test.bat

test2.bat > C:\batches\ping.txt


test2.bat

@echo off
time /t
date /t
ping x.x.x.x.x -l 1472 -n 50

That code will execute all the commands in text2.bat and write it to C:\batches\ping.txt. It includes a time and data stamp, as well as ping results.

Adrynalyne
06-08-04, 21:37
Very handy.

Thanks Goldy.

For anyone curious about why i am doing this, i am trying to prove to my ISP that my bandwidth is falling from 1.5/1.5 to 56k speeds so that they can...fix it.