Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 24-September-07, 03:32 PM   #1 (permalink)
Sempr0n?
Default Making my own Ping app

I seem destined to live in houses with crappy internet, so something I use often to check the connection is a simple "ping www.bbc.co.uk" command, from cmd.exe. But this gets a bit of a pain typing out again and again....so is there a little script I can run to do it all for me? I've tried doing it myself...no luck...tried looking for a tuturial...no luck on that either.

Any ideas?
reflux is offline     Reply With Quote
Old 24-September-07, 04:00 PM   #2 (permalink)
Apex Tech Maniac Supreme
Fortran's Avatar
Default Re: Making my own Ping app

make ur self a bat file
Fortran is offline     Reply With Quote
Old 24-September-07, 04:24 PM   #3 (permalink)
Apex Tech Maniac Supreme
Fortran's Avatar
Default Re: Making my own Ping app

Quote:
Originally Posted by Cpt.Planet
Open up note pad write ping webaddyhere then go to file save as. change the file type to all files and save it as something like pink.bat Anytime you want to run it it will open command console and ping for you.

there ya go ....

also, dont forget to add "ECHO"
so that once the command is executed, the console will remain open
Fortran is offline     Reply With Quote
Old 24-September-07, 04:25 PM   #4 (permalink)
Sempr0n?
Default Re: Making my own Ping app

Yeah, I tried that before. All it does it ping unto infinity very fast, it doesn't wait for replies so I can't tell whether the connection is working or not.
reflux is offline     Reply With Quote
Old 24-September-07, 04:30 PM   #5 (permalink)
That's Mr. Freeze to you!
Cpt.Planet's Avatar
Default Re: Making my own Ping app

Quote:
Originally Posted by Fortran
there ya go ....

also, dont forget to add "ECHO"
so that once the command is executed, the console will remain open

Yea thats what i was forgetting.
Cpt.Planet is offline     Reply With Quote
Old 24-September-07, 05:00 PM   #6 (permalink)
Sempr0n?
Default Re: Making my own Ping app

I still can't get it working. Adding "echo" after the web address doesn't make a difference. Putting it on the next line down doesn't make a difference. Putting it in front of the address doesn't make a difference. It just makes it ping several times a second, ad infinitum.
reflux is offline     Reply With Quote
Old 28-September-07, 04:01 PM   #7 (permalink)
'Da Doctor of Funk
FunkyFresh's Avatar
Default Re: Making my own Ping app

Try this:

Code:
@echo off
%windir%\system32\ping.exe www.bbc.co.uk
pause
FunkyFresh is offline     Reply With Quote
Old 28-September-07, 04:05 PM   #8 (permalink)
Sempr0n?
Default Re: Making my own Ping app

Quote:
Originally Posted by FunkyFresh
Try this:

Code:
@echo off
%windir%\system32\ping.exe www.bbc.co.uk
pause

You're awesome FunkyFresh, that's exactly what I wanted.

Have some +rep kind sir
reflux is offline     Reply With Quote
Old 28-September-07, 04:20 PM   #9 (permalink)
'Da Doctor of Funk
FunkyFresh's Avatar
Default Re: Making my own Ping app

Glad to help!

It's really weird that "ping" by itself just makes a batch file loop like that (at least for me, in XP Pro). For some reason, specifying the whole path to ping.exe does the trick.
FunkyFresh is offline     Reply With Quote
Old 28-September-07, 07:51 PM   #10 (permalink)
Joosey
Joose's Avatar
Default Re: Making my own Ping app

Even easier:

Open cmd.exe, but instead run this command:

Code:
ping -t www.bbc.co.uk
It won't stop until you press ctrl+c though
Joose is offline     Reply With Quote
Old 15-November-07, 04:09 PM   #11 (permalink)
'Da Doctor of Funk
FunkyFresh's Avatar
Default Re: Making my own Ping app

Ever look up your own advice?

I ran into this same problem just now, with a batch file on Server 2003 that kept repeating the command ad infinitum but not actually executing it. I couldn't remember what the solution actually was, but I remembered posting it! (Specifying the full path to the command did resolve it for me too, BTW.)
FunkyFresh is offline     Reply With Quote
Old 15-November-07, 10:49 PM   #12 (permalink)
Apex Tech God
s1ugh34d's Avatar
Default Re: Making my own Ping app

try pathping, its way cooler......

Yea the simple ease of the DOS batch file is brillant, isn't it?
s1ugh34d is offline     Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i improve my Wifi ping rates? GLO Internet / Network Tweaks 2 30-March-07 10:54 PM
can connect to wireless network, can ping anything, no internet :-/ AMD-playa Internet / Network Tweaks 6 09-May-05 10:53 AM
Mega Ping-Pong Game! GlitterKill Anything Goes 4 16-July-03 03:05 PM


All times are GMT -5. The time now is 10:15 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.20769 seconds with 9 queries