Batch File Help Please!

Discussion in 'Software' started by Adrynalyne, Jun 8, 2004.

  1. Adrynalyne

    Adrynalyne Guest

    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?
     
  2. Adrynalyne

    Adrynalyne Guest

    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.
     
  3. Adrynalyne

    Adrynalyne Guest

    Nevermind, Goldfish helped me :D
     
  4. goldfish

    goldfish Lt. Sushi.DC

    Too late, suckerz!

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

    test.bat
    Code:
    test2.bat > C:\batches\ping.txt 
    
    test2.bat
    Code:
    @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.
     
  5. Adrynalyne

    Adrynalyne Guest

    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.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds