Forum Home
Press F1
 
Thread ID: 49682 2004-09-27 08:48:00 XP command prompt, and pinging mejobloggs (264) Press F1
Post ID Timestamp Content User
276033 2004-09-27 08:48:00 I want to create a shortcut to ping a site in command prompt.

eg, when you open XP command prompt, type "ping www.google.co.nz"

Can I turn it into a shortcut or something so I can just click on it, and it carries out the ping command?
mejobloggs (264)
276034 2004-09-27 09:20:00 Open up notepad and type in

ping www.google.co.nz

and save as (say) google.bat. Create a Windows shortcut to the file.
JohnD (509)
276035 2004-09-27 11:34:00 Perfect, thanks! mejobloggs (264)
276036 2004-09-27 11:34:00 > Open up notepad and type in
>
> ping www.google.co.nz
>
> and save as (say) google.bat. Create a Windows
> shortcut to the file.


Or just create a shortcut to the ping executable and chuck the host you want to ping directly in the shortcut.

You may want to put on the -t argument so it keeps on going rather than just doing four pings and then closing off.

ie:

ping -t www.somerandomhost.com

That way you can close it when you're ready, not after 4 attempts.
whiskeytangofoxtrot (438)
1