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



Try to walk before you run. In other words, before running
a ping command from within a batch file, run it from a command
prompt. This is how it works:
- Click Start / Run / cmd {OK}
- Type this command:
ping www.google.com

If you do not get a response then there is something wrong
with your network setup or with your Internet connection.
This has nothing at all to do with the batch file. Fix up your
Internet connection, then start working with the batch file!


"rrjmd" <rrjmd@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:40764CEC-F451-413B-91E9-DC45EF5049E6@xxxxxxxxxxxxxxxx
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: .bat file for "keep open ping" not working after WinXPsp2 clea
    ... with simply pasting your suggested ping to google in the command line again ... I don't know why it changed my ping from www.google.com to www.1.google.com ... If you do not get a response then there is something wrong ... This has nothing at all to do with the batch file. ...
    (microsoft.public.windowsxp.general)
  • Re: .bat file for "keep open ping" not working after WinXPsp2 clea
    ... If the ping command only works when IE is open then you ... have a serious networking problem. ... let's concentrate on the batch file. ... I don't know why the cmd.exe began working the ping - it hasn't done it ...
    (microsoft.public.windowsxp.general)
  • Re: .bat file for "keep open ping" not working after WinXPsp2 clean in
    ... keep open my internet connection through my cell phone when I use it. ... always worked well through the many upgrades from sp1 to sp2 etc. ... But, now, I cannot get the batch file to work. ... Can someone tell me how to get a .bat file to work in order to Ping - ...
    (microsoft.public.windowsxp.general)
  • Re: .bat file for "keep open ping" not working after WinXPsp2 clea
    ... I don't know why the cmd.exe began working the ping - it hasn't done it ... IE - the bat file doesn't restart itself. ... I wasn't connected to the internet the batch file would still work but give ... What does this command line ...
    (microsoft.public.windowsxp.general)
  • Re: cmd help require
    ... but i want a batch file command by which ping will open in separate ... is there any process by which I dont have to type each time in command ... prompt ot run every ping. ... Note that the -t switch clashes with the /L switch: ...
    (microsoft.public.windows.file_system)

Loading