Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- From: rrjmd <rrjmd@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 17:45:01 -0800
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 aIt
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].
simply remained blank for about 30 sec then gave an error message: "theping
request could not find host www.google.com. Please check the name and tryactually
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
pinged or accessed the internet connection before it gave the errormessages.
order to
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
It'skeep open my internet connection through my cell phone when I use it.
aalways 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
call tocomplete fresh install using an OEM WinXPsp2 (and new codes from a
haveMS). But, now, I cannot get the batch file to work. The cmd.exe windowcomes
up but no command lines are either shown or processed. I've trieddisabling
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
not overwritten defaults the first time when upgrading; but, now whichusing
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 -
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).
- Follow-Ups:
- Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- From: Tom Porterfield
- Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- References:
- Re: .bat file for "keep open ping" not working after WinXPsp2 clean in
- From: Pegasus \(MVP\)
- Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- From: rrjmd
- Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- From: Pegasus \(MVP\)
- Re: .bat file for "keep open ping" not working after WinXPsp2 clean in
- Prev by Date: Re: How do I restore the "Do you want windows to save your password bo
- Next by Date: Re: Task scheduler
- Previous by thread: Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- Next by thread: Re: .bat file for "keep open ping" not working after WinXPsp2 clea
- Index(es):
Relevant Pages
|