Re: .bat file for "keep open ping" not working after WinXPsp2 clea



thanks for your reply -- I copy pasted your bat file to notepad and "saveas"d
keepopen.bat. then I clicked on it which opened a new small window with a
black background and a header bar which read C:WINDOWS\system32\cmd.exe
[which is exactly what happened when I used my old batch file as well]. It
simply remained blank for about 30 sec then gave an error message: "the ping
request could not find host www.google.com. Please check the name and try
again." [Now this error message was new to me - my old bat file never even
got that far]

But: that's as far as it went. the curser returned and it just set there
processing no more instructions- I could not tell whether or not it actually
pinged or accessed the internet connection before it gave the error messages.

any more suggestions? thanks again in advance for your help.

BTW - I do back up files - the file that I referenced did work before I
restored my system/ not any more afterwards - that's the problem.




"Pegasus (MVP)" wrote:


"rrjmd" <rrjmd@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0193F68D-6278-4B7E-810B-DED89D593CC9@xxxxxxxxxxxxxxxx
I've used a simple .bat file to recycle through a ping command in order to
keep open my internet connection through my cell phone when I use it. It's
always worked well through the many upgrades from sp1 to sp2 etc.

Now, because HP said they couldn't create me a boot disk, I had to do a
complete fresh install using an OEM WinXPsp2 (and new codes from a call to
MS). But, now, I cannot get the batch file to work. The cmd.exe window
comes
up but no command lines are either shown or processed. I've tried
disabling
my zone alarm firewall and rewriting the bat file- all to no avail..

To me, it seems like there's a setting not set right - one that might have
not overwritten defaults the first time when upgrading; but, now which
doesn't get set correctly during a fresh install.

Can someone tell me how to get a .bat file to work in order to Ping -
using
WinXpxp2 ???

@echo off
:again
ping www.google.com
ping localhost -n 120 > nul
goto again

If this does not work then you need to tell us exactly what
happens when you run it.

BTW, unless you enjoy re-inventing the wheel, you should
back up all tools (such as this one) and programs/drivers
(such as those you download from the Internet).



.



Relevant Pages

  • Re: Cant view certain websites....the firewall maybe?
    ... Did you try entering that telnet command in your command window? ... About the only thing ping is still ... >> A more reliable way to test connectivity is to use your telnet client. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Failed yum update -- WAS ( SLOW network on FC3 )
    ... >> between machines ignoring your Internet connection for the moment. ... I've seen packet size cause ... and also tell ping not to resolve names. ... >> these ping tests against your Internet router also to see if packet size ...
    (Fedora)
  • Re: Connect to Home, Not Office
    ... Trying Remote Desktop and Radmin ... Error message is cant connect to server ... It wont ping LAN IP, but will ping WAN IP ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Shell from HTA ???
    ... I wrote my own "ping" function and it looks very similar to this one, ... the console window generated by the Exec method (which is always ... > to see if the remote computer is online. ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Couple General Questions (Not off topic too much)
    ... Is it possible for an ISP to block traceroute requests and ping ... like just the basic stuff i need and X with one or two window managers, ...
    (alt.os.linux.redhat)

Loading