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



thanks again for your reply. I should have said that before I sent the
message in I tried for weeks - pinging from the command line as well as
turning off zone alarm etc.

I did as you suggested, again, and it didn't work - the first time. Then
with simply pasting your suggested ping to google in the command line again
and repeating - it worked! I got a response that it was pinging google and
recieving 4 packets back. then it hung.

So I used my "keepopen" bat again - and, lo, for the first time, it also
opened the new window, processed "ping www.1.google.com" - it recieved four
responses - then it gave me the times - before it simply quit.

I don't know why, this time (out of about 100) it worked - I did nothing
different [except install 3 of today's window's security updates] but it sort
of did work-- almost.

I don't know why it changed my ping from www.google.com to www.1.google.com
- nor why it recieved four responses to my one ping - nor why it only did it
once when I've got a "goto again" in the file.

after displaying the resulting times the cursor just did a [cr] and set
there blinking under the first character in the line above it [ but it did
NOT display the usual c:\\ prompt]

we're close but oh so far.

hope you know what's wrong.

"Pegasus (MVP)" wrote:

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
    ... 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: Good wireless signal - but browser cannot find it?
    ... But when I gave the command to see the route table, ... But his browser cannot find any connection and displays the error page ... The firewall is Norton - but disabling it temporarily made no difference. ... ping resolver1.opendns.com ...
    (microsoft.public.windowsxp.network_web)
  • Re: Missing items in XP
    ... ISP asked me to ping a site and ping was not recognized as a command. ... Isp man told me I had lost essential tools in XP. ... You can confirm this by opening a command prompt, changing to the windows\system32 directory, and running commands such as ping. ... Do I need those user variables? ...
    (microsoft.public.windowsxp.help_and_support)
  • 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)